#[repr(C)]pub struct tm_wav_api {
pub read: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, id: tm_tt_id_t) -> tm_wav_t>,
pub sample: Option<unsafe extern "C" fn(wav: *const tm_wav_t, offset: f64, buffer: *mut f32, num_samples: u32, sample_frequency: f32) -> u32>,
pub read_samples: Option<unsafe extern "C" fn(wav: *const tm_wav_t, offset: u64, buffer: *mut f32, num_samples: u32)>,
}Fields§
§read: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, id: tm_tt_id_t) -> tm_wav_t>§sample: Option<unsafe extern "C" fn(wav: *const tm_wav_t, offset: f64, buffer: *mut f32, num_samples: u32, sample_frequency: f32) -> u32>§read_samples: Option<unsafe extern "C" fn(wav: *const tm_wav_t, offset: u64, buffer: *mut f32, num_samples: u32)>Trait Implementations§
Source§impl Clone for tm_wav_api
impl Clone for tm_wav_api
Source§fn clone(&self) -> tm_wav_api
fn clone(&self) -> tm_wav_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_wav_api
Auto Trait Implementations§
impl Freeze for tm_wav_api
impl RefUnwindSafe for tm_wav_api
impl Send for tm_wav_api
impl Sync for tm_wav_api
impl Unpin for tm_wav_api
impl UnwindSafe for tm_wav_api
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