ChaiLove API
0.28.0
|
Contains audio samples that you can playback. More...
Public Member Functions | |
bool | play () |
Plays the source. | |
bool | stop () |
Stops the audio source. | |
float | getVolume () |
Gets the current volume of the Source. More... | |
SoundData & | setVolume (float volume) |
Sets the current volume of the Source. More... | |
bool | isPlaying () |
Returns whether the Source is playing. More... | |
bool | isLooping () |
Returns whether the Source will loop. More... | |
SoundData & | setLooping (bool loop) |
Set whether the Source should loop. More... | |
Contains audio samples that you can playback.
float love::Types::Audio::SoundData::getVolume | ( | ) |
Gets the current volume of the Source.
bool love::Types::Audio::SoundData::isLooping | ( | ) |
Returns whether the Source will loop.
bool love::Types::Audio::SoundData::isPlaying | ( | ) |
Returns whether the Source is playing.
SoundData& love::Types::Audio::SoundData::setLooping | ( | bool | loop | ) |
Set whether the Source should loop.