comp • gb.sdl2.audio • sound

Sound (gb.sdl2.audio)

This class represents a sound wave loaded in memory.

This class is not creatable.

Static properties

Static methods Constants
Return or set the size of the mixer audio buffer in bytes.
BufferSize  
Return or set the frequency used by the audio library, in Hertz.
Frequency  
Load a sound from the specified file.
Load  
This constant is the greater value a Volume property can take.
MaxVolume  

Properties

Methods
Return or set the volume of the sound.
Volume  
Finds a free channel and plays the sound on it. The channel is returned.
Play