pub struct AudioStream;Implementations§
Source§impl AudioStream
impl AudioStream
Sourcepub fn buffered_ms() -> u64
pub fn buffered_ms() -> u64
溜まっている時間 [ms](連続再生していなければ 0)。
Sourcepub fn set_paused(paused: bool)
pub fn set_paused(paused: bool)
一時停止(無音を流し、待ち行列は保つ)・再開。
pub fn is_active() -> bool
fn delay()
Sourcefn feeder_thread()
fn feeder_thread()
補給スレッド: DMA が読み終えた面を埋め直す(QEMU では実時間で消費するだけ)。
Sourceunsafe fn restore_tone_mode()
unsafe fn restore_tone_mode()
PWM を init() と同じ効果音(単音)用の設定へ戻す(OSC 19.2MHz / 16、M/S 方式)。
Auto Trait Implementations§
impl Freeze for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnsafeUnpin for AudioStream
impl UnwindSafe for AudioStream
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