Struct pix_engine::renderer::sdl::audio::AudioDevice
source · pub struct AudioDevice<CB: AudioCallback>(/* private fields */);
Expand description
Audio callback or playback device that can be paused and resumed.
Trait Implementations§
source§impl<CB: AudioCallback> AudioDeviceDriver for AudioDevice<CB>
impl<CB: AudioCallback> AudioDeviceDriver for AudioDevice<CB>
source§fn status(&self) -> AudioStatus
fn status(&self) -> AudioStatus
Return the status of this audio callback device.
source§impl<CB: AudioCallback> Debug for AudioDevice<CB>
impl<CB: AudioCallback> Debug for AudioDevice<CB>
source§impl<CB: AudioCallback> From<AudioDevice<UserCallback<CB>>> for AudioDevice<CB>
impl<CB: AudioCallback> From<AudioDevice<UserCallback<CB>>> for AudioDevice<CB>
source§fn from(device: SdlAudioDevice<UserCallback<CB>>) -> Self
fn from(device: SdlAudioDevice<UserCallback<CB>>) -> Self
Convert SdlAudioDevice<UseCallback<CB>>
to AudioDevice
.
Auto Trait Implementations§
impl<CB> RefUnwindSafe for AudioDevice<CB>where
CB: RefUnwindSafe,
impl<CB> !Send for AudioDevice<CB>
impl<CB> !Sync for AudioDevice<CB>
impl<CB> Unpin for AudioDevice<CB>
impl<CB> UnwindSafe for AudioDevice<CB>where
CB: 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