Struct sdl2::audio::AudioQueue [] [src]

pub struct AudioQueue<Channel: AudioFormatNum> { /* fields omitted */ }

Wraps SDL_AudioDeviceID and owns the callback data used by the audio device.

Methods

impl<Channel: AudioFormatNum> AudioQueue<Channel>
[src]

Opens a new audio device given the desired parameters and callback.

Pauses playback of the audio device.

Starts playback of the audio device.

Adds data to the audio queue.

Clears all data from the current audio queue.