pub struct PcmAudio { /* private fields */ }
Implementations§
Source§impl PcmAudio
impl PcmAudio
pub fn create_saw_wave(pcm_format: PcmFormat, frame_count: usize) -> Self
pub fn create_from_data(pcm_format: PcmFormat, raw_data: &[i16]) -> Self
pub fn frame_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcmAudio
impl RefUnwindSafe for PcmAudio
impl Send for PcmAudio
impl Sync for PcmAudio
impl Unpin for PcmAudio
impl UnwindSafe for PcmAudio
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)