Sound conversion and playback. A wrapper for other sound libraries - ASND, libmad, ltremor, etc. More...
#include <gui_sound.h>
Public Member Functions | |
| GuiSound (const u8 *s, s32 l, SOUND t) | |
| ~GuiSound () | |
| Destructor. More... | |
| void | Play () |
| Start sound playback. | |
| void | Stop () |
| Stop sound playback. | |
| void | Pause () |
| Pause sound playback. | |
| void | Resume () |
| Resume sound playback. | |
| bool | IsPlaying () |
| void | SetVolume (int v) |
| void | SetLoop (bool l) |
Sound conversion and playback. A wrapper for other sound libraries - ASND, libmad, ltremor, etc.
| GuiSound::GuiSound | ( | const u8 * | s, |
| s32 | l, | ||
| SOUND | t | ||
| ) |
Constructor
| s | Pointer to the sound data |
| l | Length of sound data |
| t | Sound format type (PCM or OGG) |
Constructor for the GuiSound class.
| GuiSound::~GuiSound | ( | ) |
Destructor.
Destructor for the GuiSound class.
| bool GuiSound::IsPlaying | ( | ) |
Checks if the sound is currently playing
| void GuiSound::SetLoop | ( | bool | l | ) |
Set the sound to loop playback (only applies to OGG)
| l | Loop (true to loop) |
| void GuiSound::SetVolume | ( | int | v | ) |
Set sound volume
| v | Sound volume (0-100) |