![]() |
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
#include <AxVoice.h>
Inheritance diagram for nw4hbm::snd::detail::AxVoice:
Collaboration diagram for nw4hbm::snd::detail::AxVoice:Public Member Functions | |
| AxVoice () | |
| virtual | ~AxVoice () |
| virtual void | InvalidateData (const void *start, const void *end) |
| virtual void | InvalidateWaveData (const void *start, const void *end) |
| void | Setup (const WaveData &waveParam) |
| void | Update () |
| void | Free () |
| void | Start () |
| void | Stop () |
| void | Pause (bool flag) |
| void | SetVolume (f32 volume) |
| void | SetVeVolume (f32 targetVolume, f32 initVolume) |
| void | SetMainOutVolume (f32 volume) |
| void | SetRemoteOutVolume (int remoteIndex, f32 volume) |
| void | SetPitch (f32 pitch) |
| void | SetPan (f32 pan) |
| void | SetPan2 (f32 pan) |
| void | SetSurroundPan (f32 surroundPan) |
| void | SetSurroundPan2 (f32 surroundPan) |
| void | SetLpfFreq (f32 lpfFreq) |
| void | SetOutputLine (int lineFlag) |
| void | SetMainSend (f32 send) |
| void | SetFxSend (AuxBus bus, f32 send) |
| void | SetRemoteSend (int remoteIndex, f32 send) |
| void | SetRemoteFxSend (int remoteIndex, f32 send) |
| void | SetPriority (int priority) |
| int | GetPriority () const |
| u32 | GetCurrentPlayingDspAddress () const |
| u32 | GetLoopStartDspAddress () const |
| u32 | GetLoopEndDspAddress () const |
| u32 | GetCurrentPlayingSample () const |
| void | SetAdpcmLoop (int channelIndex, Format format, const AdpcmLoopParam *param) |
| void | SetBaseAddress (int channelIndex, const void *baseAddress) |
| bool | IsPlayFinished () const |
| bool | IsRun () |
| void | SetAxAddr (int channelIndex, bool loopFlag, Format format, const void *waveAddr, u32 loopStart, u32 loopEnd) |
| void | SetLoopStart (int channelIndex, const void *baseAddress, u32 samples) |
| void | SetLoopEnd (int channelIndex, const void *baseAddress, u32 samples) |
| void | SetLoopFlag (bool loopFlag) |
| void | StopAtPoint (int channelIndex, const void *baseAddress, u32 samples) |
| void | SetVoiceType (VoiceType type) |
| void | UpdateAxSrc (bool initialUpdate) |
| void | SetAxSrcType (SrcType type) |
| void | SetAxAdpcm (int channelIndex, Format format, const AdpcmParam *param) |
| void | SetAxAdpcmLoop (int channelIndex, Format format, const AdpcmLoopParam *param) NO_INLINE |
| bool | UpdateAxVe () |
| void | UpdateAxMix () |
| void | UpdateAxLpf () |
| void | InitParam (int channelCount, int voiceOutCount, AxVoiceCallback callback, void *callbackData) |
| bool | Acquire (int channelCount, int voiceOutCount, int priority, AxVoiceCallback callback, void *callbackData) |
| int | GetAxVoiceCount () const |
| template<typename T > | |
| void | SetAxParam (void(*func)(AXVPB *, T), T param) |
| Format | GetFormat () |
Static Public Member Functions | |
| static u32 | GetDspAddressBySample (const void *baseAddress, u32 samples, Format format) |
| static u32 | GetSampleByDspAddress (const void *baseAddress, u32 addr, Format format) |
| static u32 | GetSampleByByte (u32 byte, Format format) |
Public Attributes | |
| ut::LinkListNode | mLinkNode |
Static Public Attributes | |
| static const int | VOICES_MAX = 4 |
| static const int | PRIORITY_MAX = 255 |
Protected Member Functions | |
| void | TransformDpl2Pan (f32 *outPan, f32 *outSurroundPan, f32 inPan, f32 inSurroundPan) |
| void | CalcAXPBMIX (int channelIndex, int voiceIndex, AXPBMIX *mix) |
| void | CalcAXPBRMTMIX (int channelIndex, int voiceIndex, AXPBRMTMIX *mix) |
Static Protected Member Functions | |
| static void | VoiceCallback (void *callbackData) |
Protected Attributes | |
| AXVPB * | mVpb [CHANNEL_MAX][VOICES_MAX] |
| VoiceChannelParam | mVoiceChannelParam [CHANNEL_MAX] |
| SoundParam | mVoiceOutParam [VOICES_MAX] |
| s32 | mChannelCount |
| s32 | mVoiceOutCount |
| AxVoiceCallback | mCallback |
| void * | mCallbackData |
| int | mSampleRate |
| Format | mFormat |
| bool | mActiveFlag |
| bool | mStartFlag |
| bool | mStartedFlag |
| bool | mPauseFlag |
| bool | mPausingFlag |
| bool | mFirstVeUpdateFlag |
| bool | mHomeButtonMuteFlag |
| u8 | mSyncFlag |
| int | mPriority |
| f32 | mPan |
| f32 | mSurroundPan |
| f32 | mPan2 |
| f32 | mSurroundPan2 |
| f32 | mLpfFreq |
| int | mOutputLineFlag |
| f32 | mMainOutVolume |
| f32 | mMainSend |
| f32 | mFxSend [AUX_BUS_NUM] |
| f32 | mRemoteOutVolume [VOICES_MAX] |
| f32 | mRemoteSend [VOICES_MAX] |
| f32 | mRemoteFxSend [VOICES_MAX] |
| f32 | mPitch |
| f32 | mVolume |
| f32 | mVolumePrev [VOICES_MAX] |
| f32 | mVeInitVolume |
| f32 | mVeTargetVolume |
| u16 | mGainPrev |
Friends | |
| class | AxManager |
| void(*) nw4hbm::snd::detail::AxVoice::AxVoiceCallback(AxVoice *drovoice, CallbackStatus status, void *callbackArg) |
| nw4hbm::snd::detail::AxVoice::AxVoice | ( | ) |
|
virtual |
| bool nw4hbm::snd::detail::AxVoice::Acquire | ( | int | channelCount, |
| int | voiceOutCount, | ||
| int | priority, | ||
| AxVoiceCallback | callback, | ||
| void * | callbackData ) |
|
protected |
|
protected |
| void nw4hbm::snd::detail::AxVoice::Free | ( | ) |
|
inline |
| u32 nw4hbm::snd::detail::AxVoice::GetCurrentPlayingDspAddress | ( | ) | const |
| u32 nw4hbm::snd::detail::AxVoice::GetCurrentPlayingSample | ( | ) | const |
|
static |
|
inline |
| u32 nw4hbm::snd::detail::AxVoice::GetLoopEndDspAddress | ( | ) | const |
| u32 nw4hbm::snd::detail::AxVoice::GetLoopStartDspAddress | ( | ) | const |
|
inline |
|
static |
| void nw4hbm::snd::detail::AxVoice::InitParam | ( | int | channelCount, |
| int | voiceOutCount, | ||
| AxVoiceCallback | callback, | ||
| void * | callbackData ) |
|
inlinevirtual |
|
virtual |
| bool nw4hbm::snd::detail::AxVoice::IsPlayFinished | ( | ) | const |
| bool nw4hbm::snd::detail::AxVoice::IsRun | ( | ) |
| void nw4hbm::snd::detail::AxVoice::Pause | ( | bool | flag | ) |
| void nw4hbm::snd::detail::AxVoice::SetAdpcmLoop | ( | int | channelIndex, |
| Format | format, | ||
| const AdpcmLoopParam * | param ) |
| void nw4hbm::snd::detail::AxVoice::SetAxAddr | ( | int | channelIndex, |
| bool | loopFlag, | ||
| Format | format, | ||
| const void * | waveAddr, | ||
| u32 | loopStart, | ||
| u32 | loopEnd ) |
| void nw4hbm::snd::detail::AxVoice::SetAxAdpcm | ( | int | channelIndex, |
| Format | format, | ||
| const AdpcmParam * | param ) |
| void nw4hbm::snd::detail::AxVoice::SetAxAdpcmLoop | ( | int | channelIndex, |
| Format | format, | ||
| const AdpcmLoopParam * | param ) |
|
inline |
| void nw4hbm::snd::detail::AxVoice::SetAxSrcType | ( | SrcType | type | ) |
| void nw4hbm::snd::detail::AxVoice::SetBaseAddress | ( | int | channelIndex, |
| const void * | baseAddress ) |
| void nw4hbm::snd::detail::AxVoice::SetLoopEnd | ( | int | channelIndex, |
| const void * | baseAddress, | ||
| u32 | samples ) |
| void nw4hbm::snd::detail::AxVoice::SetLoopFlag | ( | bool | loopFlag | ) |
| void nw4hbm::snd::detail::AxVoice::SetLoopStart | ( | int | channelIndex, |
| const void * | baseAddress, | ||
| u32 | samples ) |
| void nw4hbm::snd::detail::AxVoice::SetLpfFreq | ( | f32 | lpfFreq | ) |
| void nw4hbm::snd::detail::AxVoice::SetMainOutVolume | ( | f32 | volume | ) |
| void nw4hbm::snd::detail::AxVoice::SetMainSend | ( | f32 | send | ) |
| void nw4hbm::snd::detail::AxVoice::SetOutputLine | ( | int | lineFlag | ) |
| void nw4hbm::snd::detail::AxVoice::SetPan | ( | f32 | pan | ) |
| void nw4hbm::snd::detail::AxVoice::SetPan2 | ( | f32 | pan | ) |
| void nw4hbm::snd::detail::AxVoice::SetPitch | ( | f32 | pitch | ) |
| void nw4hbm::snd::detail::AxVoice::SetPriority | ( | int | priority | ) |
| void nw4hbm::snd::detail::AxVoice::SetRemoteFxSend | ( | int | remoteIndex, |
| f32 | send ) |
| void nw4hbm::snd::detail::AxVoice::SetRemoteOutVolume | ( | int | remoteIndex, |
| f32 | volume ) |
| void nw4hbm::snd::detail::AxVoice::SetRemoteSend | ( | int | remoteIndex, |
| f32 | send ) |
| void nw4hbm::snd::detail::AxVoice::SetSurroundPan | ( | f32 | surroundPan | ) |
| void nw4hbm::snd::detail::AxVoice::SetSurroundPan2 | ( | f32 | surroundPan | ) |
| void nw4hbm::snd::detail::AxVoice::Setup | ( | const WaveData & | waveParam | ) |
| void nw4hbm::snd::detail::AxVoice::SetVoiceType | ( | VoiceType | type | ) |
| void nw4hbm::snd::detail::AxVoice::SetVolume | ( | f32 | volume | ) |
| void nw4hbm::snd::detail::AxVoice::Start | ( | ) |
| void nw4hbm::snd::detail::AxVoice::Stop | ( | ) |
| void nw4hbm::snd::detail::AxVoice::StopAtPoint | ( | int | channelIndex, |
| const void * | baseAddress, | ||
| u32 | samples ) |
|
protected |
| void nw4hbm::snd::detail::AxVoice::Update | ( | ) |
| void nw4hbm::snd::detail::AxVoice::UpdateAxLpf | ( | ) |
| void nw4hbm::snd::detail::AxVoice::UpdateAxMix | ( | ) |
| void nw4hbm::snd::detail::AxVoice::UpdateAxSrc | ( | bool | initialUpdate | ) |
| bool nw4hbm::snd::detail::AxVoice::UpdateAxVe | ( | ) |
|
staticprotected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| ut::LinkListNode nw4hbm::snd::detail::AxVoice::mLinkNode |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |