pub struct OaoReader<R: Read> {
pub inner: R,
pub metadata: OaoMetadata,
pub speakers_absolute_coord: Vec<BubFnsCoord>,
}
Fields
inner: R
metadata: OaoMetadata
speakers_absolute_coord: Vec<BubFnsCoord>
Speakers absolute coordinates
Implementations
sourceimpl<R: Read> OaoReader<R>
impl<R: Read> OaoReader<R>
pub fn new(inner: R, speakers_absolute_coord: Vec<BubFnsCoord>) -> Result<Self>
sourcepub unsafe fn into_oao_frame_reader<B: Read + Clone, S: Sample>(
self,
bub_frame_readers: Vec<BubFrameReader<B, S>>,
oao_spaces: Option<OaoSpaces>
) -> OaoFrameReader<R, B, S>ⓘNotable traits for OaoFrameReader<R, B, S>impl<R: Read, B: Read + Clone, S: Sample> Iterator for OaoFrameReader<R, B, S> type Item = Result<Frame<S>>;
pub unsafe fn into_oao_frame_reader<B: Read + Clone, S: Sample>(
self,
bub_frame_readers: Vec<BubFrameReader<B, S>>,
oao_spaces: Option<OaoSpaces>
) -> OaoFrameReader<R, B, S>ⓘNotable traits for OaoFrameReader<R, B, S>impl<R: Read, B: Read + Clone, S: Sample> Iterator for OaoFrameReader<R, B, S> type Item = Result<Frame<S>>;
Safety
This is unsafe, due to the type of sample isn’t checked:
- type of sample must follow [
LpcmKind
]
Auto Trait Implementations
impl<R> RefUnwindSafe for OaoReader<R> where
R: RefUnwindSafe,
impl<R> Send for OaoReader<R> where
R: Send,
impl<R> Sync for OaoReader<R> where
R: Sync,
impl<R> Unpin for OaoReader<R> where
R: Unpin,
impl<R> UnwindSafe for OaoReader<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more