#include <gui.h>
Public Member Functions | |
GuiSound (const u8 *s, s32 l, int t) | |
~GuiSound () | |
Destructor. | |
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) |
Protected Attributes | |
const u8 * | sound |
Pointer to the sound data. | |
int | type |
Sound format type (SOUND_PCM or SOUND_OGG). | |
s32 | length |
Length of sound data. | |
s32 | voice |
Currently assigned ASND voice channel. | |
s32 | volume |
Sound volume (0-100). | |
bool | loop |
Loop sound playback. |
GuiSound::GuiSound | ( | const u8 * | s, | |
s32 | l, | |||
int | t | |||
) |
Constructor
s | Pointer to the sound data | |
l | Length of sound data | |
t | Sound format type (SOUND_PCM or SOUND_OGG) |
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) |