An abstract class for sounds.
More...
#include <Sound.hpp>
An abstract class for sounds.
bool lm::Sound::loaded |
( |
| ) |
|
Check wether the sound is loaded
- Returns
- true if the sound is loaded, false otherwise
void lm::Sound::loadFileOGG |
( |
| ) |
|
|
protected |
Load the ogg file and set appropriate fields.
virtual void lm::Sound::pause |
( |
| ) |
|
|
pure virtual |
virtual void lm::Sound::play |
( |
Vector3f |
pos = {0.f, 0.f, 0.f} | ) |
|
|
pure virtual |
void lm::Sound::setPath |
( |
const std::string |
name, |
|
|
bool |
resource = true |
|
) |
| |
Set the loading path for the sound
- Parameters
-
name | The file path |
resource | If true, path is relative to the resource path |
void lm::Sound::setVolumeLimits |
( |
ALuint * |
source, |
|
|
ALfloat * |
maxGain, |
|
|
ALfloat * |
minGain |
|
) |
| |
|
protected |
Set the volume range
- Parameters
-
source | The source to use |
maxGain | The maximum gain |
minGain | The minimum gain |
virtual void lm::Sound::stop |
( |
| ) |
|
|
pure virtual |
void lm::Sound::unload |
( |
| ) |
|
std::string lm::Sound::path |
|
protected |
The fully resolved file path
ALsizei lm::Sound::sampleRate |
|
protected |
OggVorbis_File lm::Sound::stream |
|
protected |
The sound current volume, between 0 and 1
The documentation for this class was generated from the following file: