libwiigui 1.07
libwiigui is a GUI library for the Wii
 
Loading...
Searching...
No Matches
GuiSound Class Reference

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)
 

Protected Attributes

const u8 * sound
 Pointer to the sound data.
 
SOUND type
 Sound format type (PCM or 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.
 

Detailed Description

Sound conversion and playback. A wrapper for other sound libraries - ASND, libmad, ltremor, etc.

Constructor & Destructor Documentation

◆ GuiSound()

GuiSound::GuiSound ( const u8 *  s,
s32  l,
SOUND  t 
)

Constructor

Parameters
sPointer to the sound data
lLength of sound data
tSound format type (PCM or OGG)

Constructor for the GuiSound class.

◆ ~GuiSound()

GuiSound::~GuiSound ( )

Destructor.

Destructor for the GuiSound class.

Member Function Documentation

◆ IsPlaying()

bool GuiSound::IsPlaying ( )

Checks if the sound is currently playing

Returns
true if sound is playing, false otherwise

◆ SetLoop()

void GuiSound::SetLoop ( bool  l)

Set the sound to loop playback (only applies to OGG)

Parameters
lLoop (true to loop)

◆ SetVolume()

void GuiSound::SetVolume ( int  v)

Set sound volume

Parameters
vSound volume (0-100)

The documentation for this class was generated from the following files: