#include <Sound.h>
Public Member Functions | |
Sound () | |
Constructor of the Sound class. | |
Sound (const char *file) | |
Constructor of the Sound class. | |
Sound (const string &file) | |
Constructor of the Sound class. | |
Sound (const Sound &obj) | |
Copy constructor of the Sound class. | |
Sound & | operator= (Sound &obj) |
Operator = of the Sound class. | |
~Sound () | |
Destructor of the Sound class. | |
UINT | Load (const char *file) |
Function to load a sound from a file. | |
UINT | Load (const string &file) |
Function to load a sound from a file. | |
void | Free (void) |
Function to release the data of the Sound object. | |
UINT | SetVolume (int vol) |
Function to change the actual volume of the sound. | |
int | GetVolume (void) const |
Function to obtain the actual volume of the sound. | |
int | GetChannel (void) const |
Function to obtain the actual channel of the sound. |
The Sound class serves to store in memory a sound contained in a file. This it can be a file WAV or OGG. And the volume of the sound can be manipulated.
Yukino::Sound::Sound | ( | ) |
Constructor of the Sound class.
Constructor by defect of the Sound class.
Yukino::Sound::Sound | ( | const char * | file | ) |
Constructor of the Sound class.
Constructor of the Sound class, that loads a file.
file | Path of the file. |
Yukino::Sound::Sound | ( | const string & | file | ) |
Constructor of the Sound class.
Constructor of the Sound class, that loads a file.
file | Path of the file. |
Yukino::Sound::Sound | ( | const Sound & | obj | ) |
Copy constructor of the Sound class.
obj | Sound object to copy. |
Yukino::Sound::~Sound | ( | ) |
void Yukino::Sound::Free | ( | void | ) |
int Yukino::Sound::GetChannel | ( | void | ) | const [inline] |
Function to obtain the actual channel of the sound.
This function serves to obtain the actual channel of the sound.
int Yukino::Sound::GetVolume | ( | void | ) | const [inline] |
Function to obtain the actual volume of the sound.
This function serves to obtain the actual volume of the sound.
UINT Yukino::Sound::Load | ( | const string & | file | ) | [inline] |
Function to load a sound from a file.
This function serves to load a sound from a file.
file | Path of the file. |
UINT Yukino::Sound::Load | ( | const char * | file | ) |
Function to load a sound from a file.
This function serves to load a sound from a file.
file | Path of the file. |
UINT Yukino::Sound::SetVolume | ( | int | vol | ) |
Function to change the actual volume of the sound.
This function serves to change the actual volume of the sound.
vol | Volume of the sound. |