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
9
namespace
nw4hbm
{
10
namespace
snd {
11
namespace
detail {
12
13
class
RemoteSpeakerManager
{
14
public
:
15
static
RemoteSpeakerManager
&
GetInstance
();
16
17
RemoteSpeaker
&
GetRemoteSpeaker
(
int
idx);
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
:
28
RemoteSpeakerManager
();
29
30
static
void
RemoteSpeakerAlarmProc
(
OSAlarm
* alarm,
OSContext
* context);
31
32
private
:
33
/* 0x00 */
bool
mInitialized
;
34
/* 0x08 */
OSAlarm
mRemoteSpeakerAlarm
;
35
/* 0x38 */
RemoteSpeaker
mSpeaker
[WPAD_MAX_CONTROLLERS];
36
};
37
38
}
// namespace detail
39
}
// namespace snd
40
}
// namespace nw4hbm
41
42
#endif
RemoteSpeaker.h
nw4hbm::snd::RemoteSpeaker
Definition
RemoteSpeaker.h:11
nw4hbm::snd::detail::RemoteSpeakerManager
Definition
RemoteSpeakerManager.h:13
nw4hbm::snd::detail::RemoteSpeakerManager::mSpeaker
RemoteSpeaker mSpeaker[WPAD_MAX_CONTROLLERS]
Definition
RemoteSpeakerManager.h:35
nw4hbm::snd::detail::RemoteSpeakerManager::RemoteSpeakerAlarmProc
static void RemoteSpeakerAlarmProc(OSAlarm *alarm, OSContext *context)
nw4hbm::snd::detail::RemoteSpeakerManager::RemoteSpeakerManager
RemoteSpeakerManager()
nw4hbm::snd::detail::RemoteSpeakerManager::Shutdown
void Shutdown()
nw4hbm::snd::detail::RemoteSpeakerManager::mRemoteSpeakerAlarm
OSAlarm mRemoteSpeakerAlarm
Definition
RemoteSpeakerManager.h:34
nw4hbm::snd::detail::RemoteSpeakerManager::GetInstance
static RemoteSpeakerManager & GetInstance()
nw4hbm::snd::detail::RemoteSpeakerManager::Setup
void Setup()
nw4hbm::snd::detail::RemoteSpeakerManager::SPEAKER_ALARM_PERIOD_NSEC
static const int SPEAKER_ALARM_PERIOD_NSEC
Definition
RemoteSpeakerManager.h:24
nw4hbm::snd::detail::RemoteSpeakerManager::SPEAKER_ALARM_HZ
static const int SPEAKER_ALARM_HZ
Definition
RemoteSpeakerManager.h:23
nw4hbm::snd::detail::RemoteSpeakerManager::GetRemoteSpeaker
RemoteSpeaker & GetRemoteSpeaker(int idx)
nw4hbm::snd::detail::RemoteSpeakerManager::mInitialized
bool mInitialized
Definition
RemoteSpeakerManager.h:33
nw4hbm
Definition
HBMAnmController.h:6
os.h
OSAlarm
Definition
OSAlarm.h:15
OSContext
Definition
OSContext.h:140
wpad.h
src
revolution
homebuttonLib
nw4hbm
snd
RemoteSpeakerManager.h
Generated by
1.12.0