#[non_exhaustive]pub struct AudioInputRoute {
pub bus: AudioBusConfig,
pub source: AudioSource,
pub adaptation: ChannelAdaptation,
}Expand description
An input bus request together with its source and explicit channel conversion.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bus: AudioBusConfigDestination native input bus and requested layout.
source: AudioSourceSignal source for the destination.
adaptation: ChannelAdaptationConversion to apply between source and destination layouts.
Implementations§
Source§impl AudioInputRoute
impl AudioInputRoute
Sourcepub const fn new(bus: AudioBusConfig, source: AudioSource) -> AudioInputRoute
pub const fn new(bus: AudioBusConfig, source: AudioSource) -> AudioInputRoute
Input bus fed from source, with an exact layout match; see Self::with_adaptation.
Sourcepub const fn with_adaptation(
self,
adaptation: ChannelAdaptation,
) -> AudioInputRoute
pub const fn with_adaptation( self, adaptation: ChannelAdaptation, ) -> AudioInputRoute
Converts the source’s channels to the bus layout with adaptation.
Trait Implementations§
Source§impl Clone for AudioInputRoute
impl Clone for AudioInputRoute
impl Copy for AudioInputRoute
Source§impl Debug for AudioInputRoute
impl Debug for AudioInputRoute
impl Eq for AudioInputRoute
Source§impl PartialEq for AudioInputRoute
impl PartialEq for AudioInputRoute
impl StructuralPartialEq for AudioInputRoute
Auto Trait Implementations§
impl Forget for AudioInputRoute
impl Freeze for AudioInputRoute
impl Move for AudioInputRoute
impl RefUnwindSafe for AudioInputRoute
impl Send for AudioInputRoute
impl Sync for AudioInputRoute
impl Unpin for AudioInputRoute
impl UnsafeUnpin for AudioInputRoute
impl UnwindSafe for AudioInputRoute
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