pub struct AudioStream { /* private fields */ }Expand description
An audio stream to read from or write to.
Implementations§
Source§impl AudioStream
impl AudioStream
Sourcepub fn open_file<P: AsRef<Path>>(path: P, format: &AudioFormat) -> Result<Self>
pub fn open_file<P: AsRef<Path>>(path: P, format: &AudioFormat) -> Result<Self>
Opens the file at the given path and returns a read-only audio stream with the specified format.
Sourcepub fn create_file<P: AsRef<Path>>(
path: P,
format: &AudioFormat,
) -> Result<Self>
pub fn create_file<P: AsRef<Path>>( path: P, format: &AudioFormat, ) -> Result<Self>
Creates an empty file at the given path and returns a writable audio stream with the specified format.
Sourcepub fn from_stream<S: Into<IStream>>(
stream: S,
format: &AudioFormat,
) -> Result<Self>
pub fn from_stream<S: Into<IStream>>( stream: S, format: &AudioFormat, ) -> Result<Self>
Wraps a COM stream and returns an audio stream with the specified format.
Auto Trait Implementations§
impl Freeze for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnwindSafe for AudioStream
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