Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
RemoteSpeakerManager.h
Go to the documentation of this file.
1#ifndef NW4HBM_SND_REMOTE_SPEAKER_MANAGER_H
2#define NW4HBM_SND_REMOTE_SPEAKER_MANAGER_H
3
4#include <revolution/os.h>
5#include <revolution/wpad.h>
6#include "RemoteSpeaker.h"
7
8
9namespace nw4hbm {
10 namespace snd {
11 namespace detail {
12
14 public:
16
18
19 void Setup();
20 void Shutdown();
21
22 private:
23 static const int SPEAKER_ALARM_HZ = 150;
24 static const int SPEAKER_ALARM_PERIOD_NSEC =
25 static_cast<int>(1.0f / SPEAKER_ALARM_HZ * 1000 * 1000 * 1000);
26
27 private:
29
30 static void RemoteSpeakerAlarmProc(OSAlarm* alarm, OSContext* context);
31
32 private:
33 /* 0x00 */ bool mInitialized;
35 /* 0x38 */ RemoteSpeaker mSpeaker[WPAD_MAX_CONTROLLERS];
36 };
37
38 } // namespace detail
39 } // namespace snd
40} // namespace nw4hbm
41
42#endif
Definition RemoteSpeaker.h:11
Definition RemoteSpeakerManager.h:13
RemoteSpeaker mSpeaker[WPAD_MAX_CONTROLLERS]
Definition RemoteSpeakerManager.h:35
static void RemoteSpeakerAlarmProc(OSAlarm *alarm, OSContext *context)
OSAlarm mRemoteSpeakerAlarm
Definition RemoteSpeakerManager.h:34
static RemoteSpeakerManager & GetInstance()
static const int SPEAKER_ALARM_PERIOD_NSEC
Definition RemoteSpeakerManager.h:24
static const int SPEAKER_ALARM_HZ
Definition RemoteSpeakerManager.h:23
RemoteSpeaker & GetRemoteSpeaker(int idx)
bool mInitialized
Definition RemoteSpeakerManager.h:33
Definition HBMAnmController.h:6
Definition OSAlarm.h:15
Definition OSContext.h:140