Definition at line 11 of file snd_RemoteSpeaker.h.
|
enum | SpeakerState {
STATE_INVALID
,
STATE_EXEC_SPEAKER_ON
,
STATE_SPEAKER_ON
,
STATE_EXEC_SPEAKER_PLAY
,
STATE_SPEAKER_PLAY
,
STATE_EXEC_SPEAKER_OFF
,
STATE_SPEAKER_OFF
} |
|
enum | SpeakerCommand {
COMMAND_NONE
,
COMMAND_SPEAKER_ON
,
COMMAND_SPEAKER_PLAY
,
COMMAND_SPEAKER_OFF
} |
|
|
void | InitParam () |
|
bool | Setup (WPADCallback pCallback) |
|
void | Shutdown (WPADCallback pCallback) |
|
bool | EnableOutput (bool enable) |
|
bool | IsEnabledOutput () const |
|
void | Update () |
|
void | UpdateStreamData (const s16 *pRmtSamples) |
|
bool | IsAvailable () const |
|
void | SetChannelIndex (int index) |
|
|
void | ClearParam () |
|
void | ExecCommand (SpeakerCommand command) |
|
bool | IsAllSampleZero (const s16 *pRmtSamples) |
|
void | NotifyCallback (s32 chan, s32 result) |
|
|
static void | SpeakerOnCallback (s32 chan, s32 result) |
|
static void | SpeakerPlayCallback (s32 chan, s32 result) |
|
static void | SpeakerOffCallback (s32 chan, s32 result) |
|
static void | ContinueAlarmHandler (OSAlarm *pAlarm, OSContext *pCtx) |
|
static void | IntervalAlarmHandler (OSAlarm *pAlarm, OSContext *pCtx) |
|
◆ SpeakerState
enum nw4r::snd::RemoteSpeaker::SpeakerState |
◆ SpeakerCommand
enum nw4r::snd::RemoteSpeaker::SpeakerCommand |
◆ IsAvailable()
bool nw4r::snd::RemoteSpeaker::IsAvailable |
( |
| ) |
const |
|
inline |
◆ SetChannelIndex()
void nw4r::snd::RemoteSpeaker::SetChannelIndex |
( |
int | index | ) |
|
|
inline |
◆ SAMPLES_PER_AUDIO_PACKET
const int nw4r::snd::RemoteSpeaker::SAMPLES_PER_AUDIO_PACKET = 40 |
|
static |
◆ SAMPLES_PER_ENCODED_PACKET
const int nw4r::snd::RemoteSpeaker::SAMPLES_PER_ENCODED_PACKET = (SAMPLES_PER_AUDIO_PACKET + 1) / 2 |
|
staticprivate |
◆ CONTINUOUS_PLAY_INTERVAL_MINUTES
const int nw4r::snd::RemoteSpeaker::CONTINUOUS_PLAY_INTERVAL_MINUTES = 8 |
|
staticprivate |
◆ mInitFlag
bool nw4r::snd::RemoteSpeaker::mInitFlag |
|
private |
◆ mPlayFlag
bool nw4r::snd::RemoteSpeaker::mPlayFlag |
|
private |
◆ mEnableFlag
bool nw4r::snd::RemoteSpeaker::mEnableFlag |
|
private |
◆ mFirstEncodeFlag
bool nw4r::snd::RemoteSpeaker::mFirstEncodeFlag |
|
private |
◆ mValidCallbackFlag
bool nw4r::snd::RemoteSpeaker::mValidCallbackFlag |
|
private |
◆ mCommandBusyFlag
bool nw4r::snd::RemoteSpeaker::mCommandBusyFlag |
|
private |
◆ mContinueFlag
bool nw4r::snd::RemoteSpeaker::mContinueFlag |
|
private |
◆ mIntervalFlag
volatile bool nw4r::snd::RemoteSpeaker::mIntervalFlag |
|
private |
◆ mState
SpeakerState nw4r::snd::RemoteSpeaker::mState |
|
private |
◆ mUserCommand
SpeakerCommand nw4r::snd::RemoteSpeaker::mUserCommand |
|
private |
◆ mInternalCommand
SpeakerCommand nw4r::snd::RemoteSpeaker::mInternalCommand |
|
private |
◆ mEncodeInfo
WENCInfo nw4r::snd::RemoteSpeaker::mEncodeInfo |
|
private |
◆ mChannelIndex
int nw4r::snd::RemoteSpeaker::mChannelIndex |
|
private |
◆ mWpadCallback
WPADCallback* nw4r::snd::RemoteSpeaker::mWpadCallback |
|
private |
◆ mContinueAlarm
OSAlarm nw4r::snd::RemoteSpeaker::mContinueAlarm |
|
private |
◆ mIntervalAlarm
OSAlarm nw4r::snd::RemoteSpeaker::mIntervalAlarm |
|
private |
◆ mContinueBeginTime
s64 nw4r::snd::RemoteSpeaker::mContinueBeginTime |
|
private |