pub struct SpatialDecoderInfo<Scene, T>{ /* private fields */ }Expand description
Stores metadata about the spatial stream.
Splits into a SpatialDecoder and SpatialDecoderTask.
Implementations§
Source§impl<Scene, T> SpatialDecoderInfo<Scene, T>
impl<Scene, T> SpatialDecoderInfo<Scene, T>
Sourcepub fn new(scene: Scene, source_count: usize, duration: usize) -> Self
pub fn new(scene: Scene, source_count: usize, duration: usize) -> Self
Creates a SpatialDecoderInfo using a xpans Spatial Record (XSR) map.
The source count and duration (in samples) of the scene must also be given.
Sourcepub fn into_pair(
self,
write_capacity: usize,
) -> (SpatialDecoder<T>, SpatialDecoderTask<Scene, T>)
pub fn into_pair( self, write_capacity: usize, ) -> (SpatialDecoder<T>, SpatialDecoderTask<Scene, T>)
Splits this struct into a SpatialDecoder and SpatialDecoderTask.
The resulting SpatialDecoder is the input you will give the renderer,
and the SpatialDecoderTask allows you to spawn the decoder task that
can decode the stream on a seperate thread.
Auto Trait Implementations§
impl<Scene, T> Freeze for SpatialDecoderInfo<Scene, T>where
Scene: Freeze,
impl<Scene, T> RefUnwindSafe for SpatialDecoderInfo<Scene, T>where
Scene: RefUnwindSafe,
T: RefUnwindSafe,
impl<Scene, T> Send for SpatialDecoderInfo<Scene, T>
impl<Scene, T> Sync for SpatialDecoderInfo<Scene, T>
impl<Scene, T> Unpin for SpatialDecoderInfo<Scene, T>
impl<Scene, T> UnsafeUnpin for SpatialDecoderInfo<Scene, T>where
Scene: UnsafeUnpin,
impl<Scene, T> UnwindSafe for SpatialDecoderInfo<Scene, T>where
Scene: UnwindSafe,
T: 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