Struct pxtnPulse_PCM

Source
#[repr(C)]
pub struct pxtnPulse_PCM { pub _ch: i32, pub _sps: i32, pub _bps: i32, pub _smp_head: i32, pub _smp_body: i32, pub _smp_tail: i32, pub _p_smp: *mut u8, }

Fields§

§_ch: i32§_sps: i32§_bps: i32§_smp_head: i32§_smp_body: i32§_smp_tail: i32§_p_smp: *mut u8

Implementations§

Source§

impl pxtnPulse_PCM

Source

pub unsafe fn Create( &mut self, ch: i32, sps: i32, bps: i32, sample_num: i32, ) -> pxtnERR

Source

pub unsafe fn Release(&mut self)

Source

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

Source

pub unsafe fn write( &self, doc: *mut pxtnDescriptor, pstrLIST: *const c_char, ) -> bool

Source

pub unsafe fn Convert( &mut self, new_ch: i32, new_sps: i32, new_bps: i32, ) -> bool

Source

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

Source

pub unsafe fn Copy(&self, p_dst: *mut pxtnPulse_PCM) -> pxtnERR

Source

pub unsafe fn Copy_( &self, p_dst: *mut pxtnPulse_PCM, start: i32, end: i32, ) -> bool

Source

pub unsafe fn Devolve_SamplingBuffer(&mut self) -> *mut c_void

Source

pub unsafe fn get_sec(&self) -> f32

Source

pub unsafe fn get_ch(&self) -> i32

Source

pub unsafe fn get_bps(&self) -> i32

Source

pub unsafe fn get_sps(&self) -> i32

Source

pub unsafe fn get_smp_body(&self) -> i32

Source

pub unsafe fn get_smp_head(&self) -> i32

Source

pub unsafe fn get_smp_tail(&self) -> i32

Source

pub unsafe fn get_buf_size(&self) -> i32

Source

pub unsafe fn get_p_buf(&self) -> *const c_void

Source

pub unsafe fn get_p_buf_variable(&self) -> *mut c_void

Source

pub unsafe fn new() -> Self

Source

pub unsafe fn destruct(&mut self)

Trait Implementations§

Source§

impl Debug for pxtnPulse_PCM

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.