Struct sdl2::mixer::Chunk [−][src]
Expand description
The internal format for an audio chunk.
Fields
raw: *mut Mix_Chunkowned: boolImplementations
Load file for use as a sample.
Load chunk from a buffer containing raw audio data in the mixer format. The length of the buffer has to fit in 32-bit unsigned integer. The chunk takes ownership of the buffer.
It’s your responsibility to provide the audio data in the right format, as no conversion will take place when using this method.
Set chunk->volume to volume.
current volume for the chunk.