Struct egui_video::AudioDevice
source · pub struct AudioDevice(/* private fields */);
Expand description
The playback device. Needs to be initialized (and kept alive!) for use by a Player
.
Implementations§
source§impl AudioDevice
impl AudioDevice
sourcepub fn from_subsystem(audio_sys: &AudioSubsystem) -> Result<AudioDevice, String>
pub fn from_subsystem(audio_sys: &AudioSubsystem) -> Result<AudioDevice, String>
Create a new AudioDevice
from an existing sdl2::AudioSubsystem
. An AudioDevice
is required for using audio.
sourcepub fn new() -> Result<AudioDevice, String>
pub fn new() -> Result<AudioDevice, String>
Create a new AudioDevice
. Creates an sdl2::AudioSubsystem
. An AudioDevice
is required for using audio.
Auto Trait Implementations§
impl !RefUnwindSafe for AudioDevice
impl !Send for AudioDevice
impl !Sync for AudioDevice
impl Unpin for AudioDevice
impl !UnwindSafe for AudioDevice
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