pub struct AmbisonicDecoderBlock<S: Sample> { /* private fields */ }Expand description
Decodes ambisonics B-format to a speaker layout.
Converts SN3D normalized, ACN ordered ambisonic signals to discrete speaker feeds using a mode-matching decoder.
§Supported Configurations
- Input: 1st order (4 ch), 2nd order (9 ch), or 3rd order (16 ch)
- Output: Stereo, 5.1, 7.1, or custom layouts
§Example
Decode first-order ambisonics to stereo using virtual speakers at ±30 degrees azimuth.
Implementations§
Source§impl<S: Sample> AmbisonicDecoderBlock<S>
impl<S: Sample> AmbisonicDecoderBlock<S>
Sourcepub fn new(order: usize, output_layout: ChannelLayout) -> Self
pub fn new(order: usize, output_layout: ChannelLayout) -> Self
Sourcepub fn output_layout(&self) -> ChannelLayout
pub fn output_layout(&self) -> ChannelLayout
Returns the output layout.
Trait Implementations§
Source§impl<S: Sample> Block<S> for AmbisonicDecoderBlock<S>
impl<S: Sample> Block<S> for AmbisonicDecoderBlock<S>
Source§fn process(
&mut self,
inputs: &[&[S]],
outputs: &mut [&mut [S]],
_modulation_values: &[S],
_context: &DspContext,
)
fn process( &mut self, inputs: &[&[S]], outputs: &mut [&mut [S]], _modulation_values: &[S], _context: &DspContext, )
Process audio through this block. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Returns the number of input ports this block accepts.
Source§fn output_count(&self) -> usize
fn output_count(&self) -> usize
Returns the number of output ports this block produces.
Source§fn modulation_outputs(&self) -> &[ModulationOutput]
fn modulation_outputs(&self) -> &[ModulationOutput]
Returns the modulation outputs this block provides. Read more
Source§fn channel_config(&self) -> ChannelConfig
fn channel_config(&self) -> ChannelConfig
Returns how this block handles multi-channel audio. Read more
Source§impl<S: Sample> From<AmbisonicDecoderBlock<S>> for BlockType<S>
impl<S: Sample> From<AmbisonicDecoderBlock<S>> for BlockType<S>
Source§fn from(block: AmbisonicDecoderBlock<S>) -> Self
fn from(block: AmbisonicDecoderBlock<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for AmbisonicDecoderBlock<S>
impl<S> RefUnwindSafe for AmbisonicDecoderBlock<S>where
S: RefUnwindSafe,
impl<S> Send for AmbisonicDecoderBlock<S>
impl<S> Sync for AmbisonicDecoderBlock<S>
impl<S> Unpin for AmbisonicDecoderBlock<S>where
S: Unpin,
impl<S> UnwindSafe for AmbisonicDecoderBlock<S>where
S: UnwindSafe,
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