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<'a, Channel: AudioFormatNum> AudioQueue<Channel>
[src]

[src]

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

[src]

[src]

[src]

[src]

Pauses playback of the audio device.

[src]

Starts playback of the audio device.

[src]

Adds data to the audio queue.

[src]

[src]

Clears all data from the current audio queue.