#[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 pxtnEvelistImplementations§
Source§impl pxtnService
impl pxtnService
pub unsafe fn init(&mut self) -> pxtnERR
pub unsafe fn init_collage(&mut self, fix_evels_num: i32) -> pxtnERR
pub unsafe fn clear(&mut self) -> bool
pub unsafe fn write( &mut self, p_doc: *mut pxtnDescriptor, bTune: bool, exe_ver: u16, ) -> pxtnERR
pub unsafe fn read(&mut self, p_doc: *mut pxtnDescriptor) -> pxtnERR
pub unsafe fn AdjustMeasNum(&mut self) -> bool
pub unsafe fn get_last_error_id(&self) -> i32
pub unsafe fn tones_ready(&mut self) -> pxtnERR
pub unsafe fn tones_clear(&mut self) -> bool
pub unsafe fn Group_Num(&self) -> i32
pub unsafe fn Delay_Num(&self) -> i32
pub unsafe fn Delay_Max(&self) -> i32
pub unsafe fn Delay_Set( &mut self, idx: i32, unit: DELAYUNIT, freq: f32, rate: f32, group: i32, ) -> bool
pub unsafe fn Delay_Add( &mut self, unit: DELAYUNIT, freq: f32, rate: f32, group: i32, ) -> bool
pub unsafe fn Delay_Remove(&mut self, idx: i32) -> bool
pub unsafe fn Delay_ReadyTone(&mut self, idx: i32) -> pxtnERR
pub unsafe fn Delay_Get(&mut self, idx: i32) -> *mut pxtnDelay
pub unsafe fn OverDrive_Num(&self) -> i32
pub unsafe fn OverDrive_Max(&self) -> i32
pub unsafe fn OverDrive_Set( &mut self, idx: i32, cut: f32, amp: f32, group: i32, ) -> bool
pub unsafe fn OverDrive_Add(&mut self, cut: f32, amp: f32, group: i32) -> bool
pub unsafe fn OverDrive_Remove(&mut self, idx: i32) -> bool
pub unsafe fn OverDrive_ReadyTone(&mut self, idx: i32) -> bool
pub unsafe fn OverDrive_Get(&mut self, idx: i32) -> *mut pxtnOverDrive
pub unsafe fn Woice_Num(&self) -> i32
pub unsafe fn Woice_Max(&self) -> i32
pub unsafe fn Woice_Get(&self, idx: i32) -> *const pxtnWoice
pub unsafe fn Woice_Get_variable(&mut self, idx: i32) -> *mut pxtnWoice
pub unsafe fn Woice_read( &mut self, idx: i32, desc: *mut pxtnDescriptor, type_: pxtnWOICETYPE, ) -> pxtnERR
pub unsafe fn Woice_ReadyTone(&mut self, idx: i32) -> pxtnERR
pub unsafe fn Woice_Remove(&mut self, idx: i32) -> bool
pub unsafe fn Woice_Replace(&mut self, old_place: i32, new_place: i32) -> bool
pub unsafe fn Unit_Num(&self) -> i32
pub unsafe fn Unit_Max(&self) -> i32
pub unsafe fn Unit_Get(&self, idx: i32) -> *const pxtnUnit
pub unsafe fn Unit_Get_variable(&mut self, idx: i32) -> *mut pxtnUnit
pub unsafe fn Unit_Remove(&mut self, idx: i32) -> bool
pub unsafe fn Unit_Replace(&mut self, old_place: i32, new_place: i32) -> bool
pub unsafe fn Unit_AddNew(&mut self) -> bool
pub unsafe fn Unit_SetOpratedAll(&mut self, b: bool) -> bool
pub unsafe fn Unit_Solo(&mut self, idx: i32) -> bool
pub unsafe fn set_destination_quality(&mut self, ch_num: i32, sps: i32) -> bool
pub unsafe fn get_destination_quality( &self, p_ch_num: *mut i32, p_sps: *mut i32, ) -> bool
pub unsafe fn set_sampled_callback( &mut self, proc_: pxtnSampledCallback, user: *mut c_void, ) -> bool
pub unsafe fn moo_is_valid_data(&self) -> bool
pub unsafe fn moo_is_end_vomit(&self) -> bool
pub unsafe fn moo_set_mute_by_unit(&mut self, b: bool) -> bool
pub unsafe fn moo_set_loop(&mut self, b: bool) -> bool
pub unsafe fn moo_set_fade(&mut self, fade: i32, sec: f32) -> bool
pub unsafe fn moo_set_master_volume(&mut self, v: f32) -> bool
pub unsafe fn moo_get_total_sample(&self) -> i32
pub unsafe fn moo_get_now_clock(&self) -> i32
pub unsafe fn moo_get_end_clock(&self) -> i32
pub unsafe fn moo_get_sampling_offset(&self) -> i32
pub unsafe fn moo_get_sampling_end(&self) -> i32
pub unsafe fn moo_preparation( &mut self, p_build: *const pxtnVOMITPREPARATION, ) -> bool
pub unsafe fn Moo(&mut self, p_buf: *mut c_void, size: i32) -> bool
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
Source§impl Debug for pxtnService
impl Debug for pxtnService
impl Send for pxtnService
Auto Trait Implementations§
impl Freeze for pxtnService
impl RefUnwindSafe for pxtnService
impl !Sync for pxtnService
impl Unpin for pxtnService
impl UnwindSafe for pxtnService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more