Sound (gb.sdl2.audio)

This class represents a sound wave loaded in memory.

该类不可创建。

常数
MaxVolume   This constant is the greater value a Volume property can take.

静态属性
BufferSize   Return or set the size of the mixer audio buffer in bytes.
Frequency   Return or set the frequency used by the audio library, in Hertz.

静态方法
Load   Load a sound from the specified file.

属性
Volume   Return or set the volume of the sound.

方法
Play   Finds a free channel and plays the sound on it. The channel is returned.