#[non_exhaustive]pub enum Sink {
Discard,
Device {
name: Option<String>,
first_channel: u16,
},
Shared(SharedBuffer),
Blocks(Blocks<dyn BlockSink>),
}Expand description
Where a listener’s samples go.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Discard
Nowhere, though their level is still measured.
Device
An audio output, by name or the default one, the stream’s channels
played on its channel first_channel on.
A buffer another part of the program drains as a device would, such as a virtual audio device apps record from.
Blocks(Blocks<dyn BlockSink>)
Another part of the program, each received frame’s block as it comes, on the listener’s thread, with its presentation time: nothing buffered, resampled or channel-mapped between. Their level is still measured.
Trait Implementations§
impl StructuralPartialEq for Sink
Auto Trait Implementations§
impl !RefUnwindSafe for Sink
impl !UnwindSafe for Sink
impl Forget for Sink
impl Freeze for Sink
impl Move for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnsafeUnpin for Sink
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