Struct pxtnService

Source
#[repr(C)]
pub struct pxtnService {
Show 49 fields pub _b_init: bool, pub _b_edit: bool, pub _b_fix_evels_num: bool, pub _dst_ch_num: i32, pub _dst_sps: i32, pub _dst_byte_per_smp: i32, pub _ptn_bldr: *mut pxtnPulse_NoiseBuilder, pub _delay_max: i32, pub _delay_num: i32, pub _delays: *mut *mut pxtnDelay, pub _ovdrv_max: i32, pub _ovdrv_num: i32, pub _ovdrvs: *mut *mut pxtnOverDrive, pub _woice_max: i32, pub _woice_num: i32, pub _woices: *mut *mut pxtnWoice, pub _unit_max: i32, pub _unit_num: i32, pub _units: *mut *mut pxtnUnit, pub _group_num: i32, pub _moo_b_valid_data: bool, pub _moo_b_end_vomit: bool, pub _moo_b_init: bool, pub _moo_b_mute_by_unit: bool, pub _moo_b_loop: bool, pub _moo_smp_smooth: i32, pub _moo_clock_rate: f32, pub _moo_smp_count: i32, pub _moo_smp_start: i32, pub _moo_smp_end: i32, pub _moo_smp_repeat: i32, pub _moo_fade_count: i32, pub _moo_fade_max: i32, pub _moo_fade_fade: i32, pub _moo_master_vol: f32, pub _moo_top: i32, pub _moo_smp_stride: f32, pub _moo_time_pan_index: i32, pub _moo_bt_tempo: f32, pub _moo_bt_clock: i32, pub _moo_bt_num: i32, pub _moo_group_smps: *mut i32, pub _moo_p_eve: *const EVERECORD, pub _moo_freq: *mut pxtnPulse_Frequency, pub _sampled_proc: pxtnSampledCallback, pub _sampled_user: *mut c_void, pub text: *mut pxtnText, pub master: *mut pxtnMaster, pub evels: *mut pxtnEvelist,
}

Fields§

§_b_init: bool§_b_edit: bool§_b_fix_evels_num: bool§_dst_ch_num: i32§_dst_sps: i32§_dst_byte_per_smp: i32§_ptn_bldr: *mut pxtnPulse_NoiseBuilder§_delay_max: i32§_delay_num: i32§_delays: *mut *mut pxtnDelay§_ovdrv_max: i32§_ovdrv_num: i32§_ovdrvs: *mut *mut pxtnOverDrive§_woice_max: i32§_woice_num: i32§_woices: *mut *mut pxtnWoice§_unit_max: i32§_unit_num: i32§_units: *mut *mut pxtnUnit§_group_num: i32§_moo_b_valid_data: bool§_moo_b_end_vomit: bool§_moo_b_init: bool§_moo_b_mute_by_unit: bool§_moo_b_loop: bool§_moo_smp_smooth: i32§_moo_clock_rate: f32§_moo_smp_count: i32§_moo_smp_start: i32§_moo_smp_end: i32§_moo_smp_repeat: i32§_moo_fade_count: i32§_moo_fade_max: i32§_moo_fade_fade: i32§_moo_master_vol: f32§_moo_top: i32§_moo_smp_stride: f32§_moo_time_pan_index: i32§_moo_bt_tempo: f32§_moo_bt_clock: i32§_moo_bt_num: i32§_moo_group_smps: *mut i32§_moo_p_eve: *const EVERECORD§_moo_freq: *mut pxtnPulse_Frequency§_sampled_proc: pxtnSampledCallback§_sampled_user: *mut c_void§text: *mut pxtnText§master: *mut pxtnMaster§evels: *mut pxtnEvelist

Implementations§

Source§

impl pxtnService

Source

pub unsafe fn init(&mut self) -> pxtnERR

Source

pub unsafe fn init_collage(&mut self, fix_evels_num: i32) -> pxtnERR

Source

pub unsafe fn clear(&mut self) -> bool

Source

pub unsafe fn write( &mut self, p_doc: *mut pxtnDescriptor, bTune: bool, exe_ver: u16, ) -> pxtnERR

Source

pub unsafe fn read(&mut self, p_doc: *mut pxtnDescriptor) -> pxtnERR

Source

pub unsafe fn AdjustMeasNum(&mut self) -> bool

Source

pub unsafe fn get_last_error_id(&self) -> i32

Source

pub unsafe fn tones_ready(&mut self) -> pxtnERR

Source

pub unsafe fn tones_clear(&mut self) -> bool

Source

pub unsafe fn Group_Num(&self) -> i32

Source

pub unsafe fn Delay_Num(&self) -> i32

Source

pub unsafe fn Delay_Max(&self) -> i32

Source

pub unsafe fn Delay_Set( &mut self, idx: i32, unit: DELAYUNIT, freq: f32, rate: f32, group: i32, ) -> bool

Source

pub unsafe fn Delay_Add( &mut self, unit: DELAYUNIT, freq: f32, rate: f32, group: i32, ) -> bool

Source

pub unsafe fn Delay_Remove(&mut self, idx: i32) -> bool

Source

pub unsafe fn Delay_ReadyTone(&mut self, idx: i32) -> pxtnERR

Source

pub unsafe fn Delay_Get(&mut self, idx: i32) -> *mut pxtnDelay

Source

pub unsafe fn OverDrive_Num(&self) -> i32

Source

pub unsafe fn OverDrive_Max(&self) -> i32

Source

pub unsafe fn OverDrive_Set( &mut self, idx: i32, cut: f32, amp: f32, group: i32, ) -> bool

Source

pub unsafe fn OverDrive_Add(&mut self, cut: f32, amp: f32, group: i32) -> bool

Source

pub unsafe fn OverDrive_Remove(&mut self, idx: i32) -> bool

Source

pub unsafe fn OverDrive_ReadyTone(&mut self, idx: i32) -> bool

Source

pub unsafe fn OverDrive_Get(&mut self, idx: i32) -> *mut pxtnOverDrive

Source

pub unsafe fn Woice_Num(&self) -> i32

Source

pub unsafe fn Woice_Max(&self) -> i32

Source

pub unsafe fn Woice_Get(&self, idx: i32) -> *const pxtnWoice

Source

pub unsafe fn Woice_Get_variable(&mut self, idx: i32) -> *mut pxtnWoice

Source

pub unsafe fn Woice_read( &mut self, idx: i32, desc: *mut pxtnDescriptor, type_: pxtnWOICETYPE, ) -> pxtnERR

Source

pub unsafe fn Woice_ReadyTone(&mut self, idx: i32) -> pxtnERR

Source

pub unsafe fn Woice_Remove(&mut self, idx: i32) -> bool

Source

pub unsafe fn Woice_Replace(&mut self, old_place: i32, new_place: i32) -> bool

Source

pub unsafe fn Unit_Num(&self) -> i32

Source

pub unsafe fn Unit_Max(&self) -> i32

Source

pub unsafe fn Unit_Get(&self, idx: i32) -> *const pxtnUnit

Source

pub unsafe fn Unit_Get_variable(&mut self, idx: i32) -> *mut pxtnUnit

Source

pub unsafe fn Unit_Remove(&mut self, idx: i32) -> bool

Source

pub unsafe fn Unit_Replace(&mut self, old_place: i32, new_place: i32) -> bool

Source

pub unsafe fn Unit_AddNew(&mut self) -> bool

Source

pub unsafe fn Unit_SetOpratedAll(&mut self, b: bool) -> bool

Source

pub unsafe fn Unit_Solo(&mut self, idx: i32) -> bool

Source

pub unsafe fn set_destination_quality(&mut self, ch_num: i32, sps: i32) -> bool

Source

pub unsafe fn get_destination_quality( &self, p_ch_num: *mut i32, p_sps: *mut i32, ) -> bool

Source

pub unsafe fn set_sampled_callback( &mut self, proc_: pxtnSampledCallback, user: *mut c_void, ) -> bool

Source

pub unsafe fn moo_is_valid_data(&self) -> bool

Source

pub unsafe fn moo_is_end_vomit(&self) -> bool

Source

pub unsafe fn moo_set_mute_by_unit(&mut self, b: bool) -> bool

Source

pub unsafe fn moo_set_loop(&mut self, b: bool) -> bool

Source

pub unsafe fn moo_set_fade(&mut self, fade: i32, sec: f32) -> bool

Source

pub unsafe fn moo_set_master_volume(&mut self, v: f32) -> bool

Source

pub unsafe fn moo_get_total_sample(&self) -> i32

Source

pub unsafe fn moo_get_now_clock(&self) -> i32

Source

pub unsafe fn moo_get_end_clock(&self) -> i32

Source

pub unsafe fn moo_get_sampling_offset(&self) -> i32

Source

pub unsafe fn moo_get_sampling_end(&self) -> i32

Source

pub unsafe fn moo_preparation( &mut self, p_build: *const pxtnVOMITPREPARATION, ) -> bool

Source

pub unsafe fn Moo(&mut self, p_buf: *mut c_void, size: i32) -> bool

Source

pub unsafe fn new() -> Self

Source

pub unsafe fn destruct(&mut self)

Trait Implementations§

Source§

impl Debug for pxtnService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for pxtnService

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.