Struct pxtnWoice

Source
#[repr(C)]
pub struct pxtnWoice { pub _voice_num: i32, pub _name_buf: [c_char; 17], pub _name_size: i32, pub _type: pxtnWOICETYPE, pub _voices: *mut pxtnVOICEUNIT, pub _voinsts: *mut pxtnVOICEINSTANCE, pub _x3x_tuning: f32, pub _x3x_basic_key: i32, }

Fields§

§_voice_num: i32§_name_buf: [c_char; 17]§_name_size: i32§_type: pxtnWOICETYPE§_voices: *mut pxtnVOICEUNIT§_voinsts: *mut pxtnVOICEINSTANCE§_x3x_tuning: f32§_x3x_basic_key: i32

Implementations§

Source§

impl pxtnWoice

Source

pub unsafe fn get_voice_num(&self) -> i32

Source

pub unsafe fn get_x3x_tuning(&self) -> f32

Source

pub unsafe fn get_x3x_basic_key(&self) -> i32

Source

pub unsafe fn get_type(&self) -> pxtnWOICETYPE

Source

pub unsafe fn get_voice(&self, idx: i32) -> *const pxtnVOICEUNIT

Source

pub unsafe fn get_voice_variable(&mut self, idx: i32) -> *mut pxtnVOICEUNIT

Source

pub unsafe fn get_instance(&self, idx: i32) -> *const pxtnVOICEINSTANCE

Source

pub unsafe fn set_name_buf( &mut self, name_buf: *const c_char, buf_size: i32, ) -> bool

Source

pub unsafe fn get_name_buf(&self, p_buf_size: *mut i32) -> *const c_char

Source

pub unsafe fn is_name_buf(&self) -> bool

Source

pub unsafe fn Voice_Allocate(&mut self, voice_num: i32) -> bool

Source

pub unsafe fn Voice_Release(&mut self)

Source

pub unsafe fn Copy(&self, p_dst: *mut pxtnWoice) -> bool

Source

pub unsafe fn Slim(&mut self)

Source

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

Source

pub unsafe fn PTV_Write( &self, p_doc: *mut pxtnDescriptor, p_total: *mut i32, ) -> bool

Source

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

Source

pub unsafe fn io_matePCM_w(&self, p_doc: *mut pxtnDescriptor) -> bool

Source

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

Source

pub unsafe fn io_matePTN_w(&self, p_doc: *mut pxtnDescriptor) -> bool

Source

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

Source

pub unsafe fn io_matePTV_w(&self, p_doc: *mut pxtnDescriptor) -> bool

Source

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

Source

pub unsafe fn io_mateOGGV_w(&self, p_doc: *mut pxtnDescriptor) -> bool

Source

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

Source

pub unsafe fn Tone_Ready_sample( &mut self, ptn_bldr: *const pxtnPulse_NoiseBuilder, ) -> pxtnERR

Source

pub unsafe fn Tone_Ready_envelope(&mut self, sps: i32) -> pxtnERR

Source

pub unsafe fn Tone_Ready( &mut self, ptn_bldr: *const pxtnPulse_NoiseBuilder, sps: i32, ) -> pxtnERR

Source

pub unsafe fn new() -> Self

Source

pub unsafe fn destruct(&mut self)

Trait Implementations§

Source§

impl Debug for pxtnWoice

Source§

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

Formats the value using the given formatter. Read more

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.