pub struct CacheAudioReadGuard { /* private fields */ }Expand description
音声キャッシュデータの読み取りガード。
Implementations§
Source§impl CacheAudioReadGuard
impl CacheAudioReadGuard
Sourcepub fn sample_num(&self) -> usize
pub fn sample_num(&self) -> usize
音声キャッシュのサンプル数。
Sourcepub fn channel_num(&self) -> usize
pub fn channel_num(&self) -> usize
音声キャッシュのチャンネル数。
Sourcepub fn channel(&self, channel: AudioChannel) -> Option<&[f32]>
pub fn channel(&self, channel: AudioChannel) -> Option<&[f32]>
指定チャンネルのサンプル列を取得する。
Trait Implementations§
impl Send for CacheAudioReadGuard
Auto Trait Implementations§
impl !Sync for CacheAudioReadGuard
impl Freeze for CacheAudioReadGuard
impl RefUnwindSafe for CacheAudioReadGuard
impl Unpin for CacheAudioReadGuard
impl UnsafeUnpin for CacheAudioReadGuard
impl UnwindSafe for CacheAudioReadGuard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more