Struct sdl2::audio::AudioQueue [−][src]
pub struct AudioQueue<Channel: AudioFormatNum> { /* fields omitted */ }
Expand description
Wraps SDL_AudioDeviceID
and owns the callback data used by the audio device.
Implementations
pub fn open_queue<D: Into<Option<&'a str>>>(
a: &AudioSubsystem,
device: D,
spec: &AudioSpecDesired
) -> Result<AudioQueue<Channel>, String>
pub fn open_queue<D: Into<Option<&'a str>>>(
a: &AudioSubsystem,
device: D,
spec: &AudioSpecDesired
) -> Result<AudioQueue<Channel>, String>
Opens a new audio device given the desired parameters and callback.
Adds data to the audio queue.