Struct sdl2::AudioSubsystem
[−]
[src]
pub struct AudioSubsystem { /* fields omitted */ }
Methods
impl AudioSubsystem
[src]
impl AudioSubsystem
[src]
fn open_playback<CB, F>(&self,
device: Option<&str>,
spec: &AudioSpecDesired,
get_callback: F)
-> Result<AudioDevice<CB>, String> where CB: AudioCallback, F: FnOnce(AudioSpec) -> CB
device: Option<&str>,
spec: &AudioSpecDesired,
get_callback: F)
-> Result<AudioDevice<CB>, String> where CB: AudioCallback, F: FnOnce(AudioSpec) -> CB
Opens a new audio device given the desired parameters and callback.
fn open_queue<Channel>(&self,
device: Option<&str>,
spec: &AudioSpecDesired)
-> Result<AudioQueue<Channel>, String> where Channel: AudioFormatNum
device: Option<&str>,
spec: &AudioSpecDesired)
-> Result<AudioQueue<Channel>, String> where Channel: AudioFormatNum
Opens a new audio device which uses queueing rather than older callback method.
fn current_audio_driver(&self) -> &'static str
fn num_audio_playback_devices(&self) -> Option<u32>
fn audio_playback_device_name(&self, index: u32) -> Result<String, String>
Trait Implementations
impl Debug for AudioSubsystem
[src]
impl Clone for AudioSubsystem
[src]
fn clone(&self) -> AudioSubsystem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more