ChaiLove API
2.0.0
|
Contains audio samples that you can playback. More...
Public Member Functions | |
bool | play () |
Plays the source. | |
bool | stop () |
Stops the audio source. | |
bool | isLooping () |
Returns whether the Source will loop. More... | |
SoundData & | setLooping (bool loop) |
Set whether the Source should loop. More... | |
SoundData & | setVolume (float volume) |
Set the volume for the sound. More... | |
float | getVolume () |
Retrieve the volume for the sound. | |
bool | isPlaying () |
Returns true or false depending on if the sound is actively playing. | |
Contains audio samples that you can playback.
bool love::Types::Audio::SoundData::isLooping | ( | ) |
Returns whether the Source will loop.
SoundData& love::Types::Audio::SoundData::setLooping | ( | bool | loop | ) |
Set whether the Source should loop.
SoundData& love::Types::Audio::SoundData::setVolume | ( | float | volume | ) |
Set the volume for the sound.
volume | A float from 0.0f to 1.0f. |