pub struct AudioQueue<Channel: AudioFormatNum> { /* private fields */ }
Expand description

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

Implementations

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

Pauses playback of the audio device.

Starts playback of the audio device.

👎 Deprecated since 0.35.2:

Users should instead use AudioQueue::queue_audio

Adds data to the audio queue.

Adds data to the audio queue.

Clears all data from the current audio queue.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.