Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
homebutton::RemoteSpk Class Reference

#include <HBMRemoteSpk.h>

+ Collaboration diagram for homebutton::RemoteSpk:

Classes

struct  ChanInfo
 

Public Member Functions

 RemoteSpk (void *spkSeBuf)
 
bool isPlayReady (s32 chan) const
 
bool isPlaying (s32 chan) const
 
bool isPlayingId (s32 chan, int seId) const
 
void GetPCMFromSeID (int in_ID, s16 *&out_wave, int &out_length)
 
void ClearPcm ()
 
void Start ()
 
void Stop ()
 
void Connect (s32 chan)
 
void Play (s32 chan, int seID, s8 vol)
 
virtual ~RemoteSpk ()
 

Static Public Member Functions

static void SetInstance (RemoteSpk *pThis)
 
static RemoteSpkGetInstance ()
 

Static Private Member Functions

static void UpdateSpeaker (OSAlarm *alarm, OSContext *context)
 
static void SpeakerOnCallback (s32 chan, s32 result)
 
static void DelaySpeakerOnCallback (OSAlarm *alarm, OSContext *context)
 
static void SpeakerPlayCallback (s32 chan, s32 result)
 
static void DelaySpeakerPlayCallback (OSAlarm *alarm, OSContext *context)
 

Private Attributes

ChanInfo info [WPAD_MAX_CONTROLLERS]
 
OSAlarm speakerAlarm
 
ARCHandle handle
 
bool available
 

Constructor & Destructor Documentation

◆ RemoteSpk()

homebutton::RemoteSpk::RemoteSpk ( void * spkSeBuf)

◆ ~RemoteSpk()

homebutton::RemoteSpk::~RemoteSpk ( void )
virtual

Member Function Documentation

◆ ClearPcm()

void homebutton::RemoteSpk::ClearPcm ( void )

◆ Connect()

void homebutton::RemoteSpk::Connect ( s32 chan)

◆ DelaySpeakerOnCallback()

void homebutton::RemoteSpk::DelaySpeakerOnCallback ( OSAlarm * alarm,
OSContext * context )
staticprivate

◆ DelaySpeakerPlayCallback()

void homebutton::RemoteSpk::DelaySpeakerPlayCallback ( OSAlarm * alarm,
OSContext * context )
staticprivate

◆ GetInstance()

RemoteSpk * homebutton::RemoteSpk::GetInstance ( void )
static

◆ GetPCMFromSeID()

void homebutton::RemoteSpk::GetPCMFromSeID ( int in_ID,
s16 *& out_wave,
int & out_length )

◆ isPlaying()

bool homebutton::RemoteSpk::isPlaying ( s32 chan) const

◆ isPlayingId()

bool homebutton::RemoteSpk::isPlayingId ( s32 chan,
int seId ) const

◆ isPlayReady()

bool homebutton::RemoteSpk::isPlayReady ( s32 chan) const

◆ Play()

void homebutton::RemoteSpk::Play ( s32 chan,
int seID,
s8 vol )

◆ SetInstance()

void homebutton::RemoteSpk::SetInstance ( RemoteSpk * pThis)
static

◆ SpeakerOnCallback()

void homebutton::RemoteSpk::SpeakerOnCallback ( s32 chan,
s32 result )
staticprivate

◆ SpeakerPlayCallback()

void homebutton::RemoteSpk::SpeakerPlayCallback ( s32 chan,
s32 result )
staticprivate

◆ Start()

void homebutton::RemoteSpk::Start ( void )

◆ Stop()

void homebutton::RemoteSpk::Stop ( void )

◆ UpdateSpeaker()

void homebutton::RemoteSpk::UpdateSpeaker ( OSAlarm * alarm,
OSContext * context )
staticprivate

Member Data Documentation

◆ available

bool homebutton::RemoteSpk::available
private

◆ handle

ARCHandle homebutton::RemoteSpk::handle
private

◆ info

ChanInfo homebutton::RemoteSpk::info[WPAD_MAX_CONTROLLERS]
private

◆ speakerAlarm

OSAlarm homebutton::RemoteSpk::speakerAlarm
private

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