pub struct WavStream { /* private fields */ }Expand description
A PCM stream decoded from a WAV file together with its sample format.
Implementations§
Source§impl WavStream
impl WavStream
Sourcepub fn spec(&self) -> PcmSpec
pub fn spec(&self) -> PcmSpec
Returns the PCM sample format (channels and sample rate) of the WAV.
Sourcepub fn stream(&self) -> &StreamValue
pub fn stream(&self) -> &StreamValue
Borrows the decoded PCM stream.
Sourcepub fn into_stream(self) -> StreamValue
pub fn into_stream(self) -> StreamValue
Consumes the wrapper and returns the decoded PCM stream.
Auto Trait Implementations§
impl !Freeze for WavStream
impl RefUnwindSafe for WavStream
impl Send for WavStream
impl Sync for WavStream
impl Unpin for WavStream
impl UnsafeUnpin for WavStream
impl UnwindSafe for WavStream
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