#[repr(transparent)]pub struct AUSpatialMixerSourceMode(pub u32);Expand description
Mono input is spatialized using kAudioUnitProperty_SpatializationAlgorithm. Any input with more than one channel is passed through without spatialization. This is the default mode and corresponds to legacy behavior. The rendering is equivalent to kSpatialMixerSourceMode_PointSource for mono input and kSpatialMixerSourceMode_Bypass for input with more than one channel.
No spatial rendering. If input and output AudioChannelLayouts are equivalent, all input channels are copied to corresponding output channels. If the input and output AudioChannelLayouts differ, mixing is done according to the kAudioFormatProperty_MatrixMixMap property of the layouts. No occlusion, obstruction, or reverb is applied in this mode.
All channels of the input signal are rendered as a single source except if rendering in-head with kSpatialMixerPointSourceInHeadMode_Bypass.
The input channels are spatialized around the listener as far-field sources. The relative directions of the individual channels are specified by the AudioChannelLayout of the bus. The rotation of the whole bed in the global space is controlled by azimuth and elevation parameters.
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl AUSpatialMixerSourceMode
impl AUSpatialMixerSourceMode
pub const SpatialMixerSourceMode_SpatializeIfMono: AUSpatialMixerSourceMode
pub const SpatialMixerSourceMode_Bypass: AUSpatialMixerSourceMode
pub const SpatialMixerSourceMode_PointSource: AUSpatialMixerSourceMode
pub const SpatialMixerSourceMode_AmbienceBed: AUSpatialMixerSourceMode
Trait Implementations§
Source§impl Clone for AUSpatialMixerSourceMode
impl Clone for AUSpatialMixerSourceMode
Source§fn clone(&self) -> AUSpatialMixerSourceMode
fn clone(&self) -> AUSpatialMixerSourceMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AUSpatialMixerSourceMode
Source§impl Debug for AUSpatialMixerSourceMode
impl Debug for AUSpatialMixerSourceMode
Source§impl Encode for AUSpatialMixerSourceMode
impl Encode for AUSpatialMixerSourceMode
impl Eq for AUSpatialMixerSourceMode
Source§impl Hash for AUSpatialMixerSourceMode
impl Hash for AUSpatialMixerSourceMode
Source§impl Ord for AUSpatialMixerSourceMode
impl Ord for AUSpatialMixerSourceMode
Source§fn cmp(&self, other: &AUSpatialMixerSourceMode) -> Ordering
fn cmp(&self, other: &AUSpatialMixerSourceMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AUSpatialMixerSourceMode
impl PartialEq for AUSpatialMixerSourceMode
Source§fn eq(&self, other: &AUSpatialMixerSourceMode) -> bool
fn eq(&self, other: &AUSpatialMixerSourceMode) -> bool
self and other values to be equal, and is used by ==.