Module rich_sdl2_rust::audio
source · Expand description
Provides audio device control, configuration, wav format utilities and so on.
Modules§
- An audio buffer
AudioBuffer<T>
with a format, sample rates, numbers of channels and a buffer. It can be convert into another format and mix by the specified volume. - An event related on an audio device.
- Type definitions for a format of audio data.
- Structures to use an audio device by pushing methods.
- Provides tools to make a specification to require what an audio device is.
- A status of an audio device.
- An audio stream allows to read and write by streaming method.
- A structure for wav format.
Structs§
- A lock to prevent an audio device from calling the callback
spec::AudioCallback
. - A property of an audio device.
- An audio device to input sound.
- An audio device to output sound.
Traits§
- Common methods for an audio device, such as a speaker and a microphone.
Functions§
- Returns all of audio driver names recognized on now.
- Returns the current audio driver name, or
None
if it does not exist. - Returns the device name of the id
device_id
. Please setis_microphone
according to what type you want to.