pub struct CacheAudioWriteGuard { /* private fields */ }Expand description
音声キャッシュデータの書き込みガード。
Implementations§
Source§impl CacheAudioWriteGuard
impl CacheAudioWriteGuard
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]>
指定チャンネルのサンプル列を取得する。
Sourcepub fn channel_mut(&mut self, channel: AudioChannel) -> Option<&mut [f32]>
pub fn channel_mut(&mut self, channel: AudioChannel) -> Option<&mut [f32]>
指定チャンネルのサンプル列を可変取得する。
Trait Implementations§
impl Send for CacheAudioWriteGuard
Auto Trait Implementations§
impl !Sync for CacheAudioWriteGuard
impl Freeze for CacheAudioWriteGuard
impl RefUnwindSafe for CacheAudioWriteGuard
impl Unpin for CacheAudioWriteGuard
impl UnsafeUnpin for CacheAudioWriteGuard
impl UnwindSafe for CacheAudioWriteGuard
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