Struct pxtone_sys::pxtnDelay
source · [−]#[repr(C)]pub struct pxtnDelay {
pub _b_played: bool,
pub _unit: DELAYUNIT,
pub _group: i32,
pub _rate: f32,
pub _freq: f32,
pub _smp_num: i32,
pub _offset: i32,
pub _bufs: [*mut i32; 2],
pub _rate_s32: i32,
}Fields
_b_played: bool_unit: DELAYUNIT_group: i32_rate: f32_freq: f32_smp_num: i32_offset: i32_bufs: [*mut i32; 2]_rate_s32: i32Implementations
sourceimpl pxtnDelay
impl pxtnDelay
pub unsafe fn Tone_Ready(
&mut self,
beat_num: i32,
beat_tempo: f32,
sps: i32
) -> pxtnERR
pub unsafe fn Tone_Supple(&mut self, ch_num: i32, group_smps: *mut i32)
pub unsafe fn Tone_Increment(&mut self)
pub unsafe fn Tone_Release(&mut self)
pub unsafe fn Tone_Clear(&mut self)
pub unsafe fn Add_New(
&mut self,
scale: DELAYUNIT,
freq: f32,
rate: f32,
group: i32
) -> bool
pub unsafe fn Write(&self, p_doc: *mut pxtnDescriptor) -> bool
pub unsafe fn Read(&mut self, p_doc: *mut pxtnDescriptor) -> pxtnERR
pub unsafe fn get_unit(&self) -> DELAYUNIT
pub unsafe fn get_freq(&self) -> f32
pub unsafe fn get_rate(&self) -> f32
pub unsafe fn get_group(&self) -> i32
pub unsafe fn Set(&mut self, unit: DELAYUNIT, freq: f32, rate: f32, group: i32)
pub unsafe fn get_played(&self) -> bool
pub unsafe fn set_played(&mut self, b: bool)
pub unsafe fn switch_played(&mut self) -> bool
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for pxtnDelay
impl !Send for pxtnDelay
impl !Sync for pxtnDelay
impl Unpin for pxtnDelay
impl UnwindSafe for pxtnDelay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more