Lums
|
A class used to represent music. More...
#include <Music.hpp>
Public Member Functions | |
Music () | |
Music (const Music &)=delete | |
Music (Music &&rhs) | |
Music & | operator= (const Music &)=delete |
Music & | operator= (Music &&rhs) |
void | play (Vector3f pos={0.f, 0.f, 0.f}) |
void | pause () |
void | stop () |
void | setVolume (float volume) |
~Music () | |
Public Member Functions inherited from lm::Sound | |
void | setPath (const std::string name, bool resource=true) |
void | load () |
bool | loaded () |
void | unload () |
Additional Inherited Members | |
Protected Member Functions inherited from lm::Sound | |
void | loadFileOGG () |
void | setVolumeLimits (ALuint *source, ALfloat *maxGain, ALfloat *minGain) |
Protected Attributes inherited from lm::Sound | |
float | volume |
FILE * | file |
OggVorbis_File | stream |
ALenum | format |
ALsizei | sampleRate |
std::string | path |
A class used to represent music.
lm::Music::Music | ( | ) |
Create an empty music
|
delete |
Deleted ctor
lm::Music::Music | ( | Music && | rhs | ) |
Move-construct a music
rhs | Source music |
lm::Music::~Music | ( | ) |
Music dtor
|
virtual |
Pause the loaded music
Implements lm::Sound.
|
virtual |
void lm::Music::setVolume | ( | float | volume | ) |
Set the volume of loaded music
volume | The volume, 0 being silent and 1 the loudest |
|
virtual |
Stop the loaded music
Implements lm::Sound.