NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
Definition at line 47 of file snd_StrmPlayer.h.
Classes | |
class | StrmDataLoadTask |
class | StrmHeaderLoadTask |
struct | StrmTrack |
Public Types | |
enum | StartOffsetType { START_OFFSET_TYPE_SAMPLE , START_OFFSET_TYPE_MILLISEC } |
enum | SetupResult { SETUP_SUCCESS , SETUP_ERR_CANNOT_ALLOCATE_BUFFER , SETUP_ERR_UNKNOWN } |
![]() | |
typedef ut::LinkList< PlayerCallback, 0x00 > | LinkList |
Public Member Functions | |
virtual bool | Start () |
virtual void | Stop () |
virtual void | Pause (bool flag) |
virtual bool | IsActive () const |
virtual bool | IsStarted () const |
virtual bool | IsPause () const |
virtual void | OnUpdateFrameSoundThread () |
virtual void | OnUpdateVoiceSoundThread () |
virtual void | OnShutdownSoundThread () |
SetupResult | Setup (StrmBufferPool *bufferPool, int allocChannelCount, u16 allocTrackFlag, int voiceOutCount) |
void | Update () |
void | Shutdown () |
bool | IsPrepared () const |
StrmChannel * | GetTrackChannel (StrmTrack const &track, int channelIndex) |
StrmTrack * | GetPlayerTrack (int trackNo) |
void | SetTaskErrorFlag () |
void | SetTaskCancelFlag () |
bool | IsAdpcm () const |
bool | CheckDiskDriveError () const |
void | SetAdpcmLoopContext (int channelNum, u16 *predScale) |
void | SetTrackVolume (ulong trackBitFlag, f32 volume) |
ulong | GetPlaySamplePosition () const |
bool | ReadStrmDataInfo (StrmDataInfo *) const |
void | InitParam () |
bool | SetupPlayer () |
bool | Prepare (ut::FileStream *fileStream, StartOffsetType startOffsetType, int startOffset) |
bool | LoadHeader (ut::FileStream *fileStream, StartOffsetType startOffsetType, int startOffset) |
bool | LoadStreamData (ut::FileStream *fileStream, int offset, ulong size, ulong blockSize, int bufferBlockIndex, bool needUpdateAdpcmLoop) |
bool | AllocStrmBuffers () |
void | FreeStrmBuffers () |
bool | AllocVoices (int voiceOutCount) |
void | FreeVoices () |
int | CalcLoadingBufferBlockCount () const |
bool | CalcStartOffset (s32 *startBlockIndex, ulong *startBlockOffset, s32 *loopCount) |
void | SetLoopEndToZeroBuffer (int endBufferBlockIndex) |
void | UpdateBuffer () |
void | UpdatePauseStatus () |
void | UpdateLoadingBlockIndex () |
void | UpdatePlayingBlockIndex () |
void | UpdateLoopAddress (ulong loopStartSamples, ulong loopEndSamples) |
void | UpdateDataLoopAddress (s32 endBlockBufferIndex) |
void | UpdateVoiceParams (StrmTrack *track) |
![]() | |
void | InitParam () |
void | SetRemoteOutVolume (int remote, f32 volume) |
f32 | GetRemoteOutVolume (int remote) const |
f32 | GetVolume () const |
f32 | GetPitch () const |
f32 | GetPan () const |
f32 | GetSurroundPan () const |
f32 | GetLpfFreq () const |
f32 | GetBiquadValue () const |
int | GetBiquadType () const |
int | GetRemoteFilter () const |
int | GetOutputLine () const |
f32 | GetMainOutVolume () const |
f32 | GetMainSend () const |
PanMode | GetPanMode () const |
PanCurve | GetPanCurve () const |
f32 | GetFxSend (AuxBus bus) const |
VoiceOutParam const & | GetVoiceOutParam (int index) const |
ulong | GetId () const |
void | SetVolume (f32 volume) |
void | SetPitch (f32 pitch) |
void | SetPan (f32 pan) |
void | SetSurroundPan (f32 surroundPan) |
void | SetLpfFreq (f32 lpfFreq) |
void | SetBiquadFilter (int type, f32 value) |
void | SetRemoteFilter (int filter) |
void | SetOutputLine (int lineFlag) |
void | SetMainOutVolume (f32 volume) |
void | SetMainSend (f32 send) |
void | SetPanMode (PanMode panMode) |
void | SetPanCurve (PanCurve panCurve) |
void | SetFxSend (AuxBus bus, f32 send) |
void | SetVoiceOutParam (int index, VoiceOutParam const ¶m) |
void | SetId (ulong id) |
Static Public Member Functions | |
static ulong | GetSampleByByte (ulong byte, SampleFormat format) |
Static Public Attributes | |
static int const | LOAD_BUFFER_SIZE = 0x4000 |
static int const | LOAD_BUFFER_CHANNEL_NUM |
static int const | BUFFER_BLOCK_COUNT_MAX = 32 |
static int const | STRM_CHANNEL_NUM_PER_TRACK |
static int const | STRM_CHANNEL_NUM = 16 |
static int const | DATA_BLOCK_SIZE_MAX = 0x2000 |
static int const | STRM_TRACK_NUM = 8 |
Static Private Member Functions | |
static void | VoiceCallbackFunc (Voice *voice, Voice::VoiceCallbackStatus status, void *arg) |
Static Private Attributes | |
static bool | sStaticInitFlag |
static OSMutex | sLoadBufferMutex |
static byte_t | sLoadBuffer [LOAD_BUFFER_SIZE] |
enum nw4r::snd::detail::StrmPlayer::StartOffsetType |
Definition at line 52 of file snd_StrmPlayer.h.
enum nw4r::snd::detail::StrmPlayer::SetupResult |
Definition at line 59 of file snd_StrmPlayer.h.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 145 of file snd_StrmPlayer.h.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 146 of file snd_StrmPlayer.h.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 147 of file snd_StrmPlayer.h.
|
inlinevirtual |
Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.
Definition at line 150 of file snd_StrmPlayer.h.
|
inlinevirtual |
Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.
Definition at line 151 of file snd_StrmPlayer.h.
|
inlinevirtual |
Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.
Definition at line 152 of file snd_StrmPlayer.h.
|
inline |
Definition at line 160 of file snd_StrmPlayer.h.
|
inline |
Definition at line 164 of file snd_StrmPlayer.h.
|
inline |
Definition at line 165 of file snd_StrmPlayer.h.
|
inline |
Definition at line 167 of file snd_StrmPlayer.h.
|
static |
Definition at line 218 of file snd_StrmPlayer.h.
|
static |
Definition at line 219 of file snd_StrmPlayer.h.
|
static |
Definition at line 220 of file snd_StrmPlayer.h.
|
static |
Definition at line 221 of file snd_StrmPlayer.h.
|
static |
Definition at line 222 of file snd_StrmPlayer.h.
|
static |
Definition at line 223 of file snd_StrmPlayer.h.
|
static |
Definition at line 224 of file snd_StrmPlayer.h.
|
staticprivate |
Definition at line 227 of file snd_StrmPlayer.h.
|
staticprivate |
Definition at line 228 of file snd_StrmPlayer.h.
|
staticprivate |
Definition at line 229 of file snd_StrmPlayer.h.
|
private |
Definition at line 235 of file snd_StrmPlayer.h.
|
private |
Definition at line 236 of file snd_StrmPlayer.h.
|
private |
Definition at line 237 of file snd_StrmPlayer.h.
|
private |
Definition at line 238 of file snd_StrmPlayer.h.
|
private |
Definition at line 239 of file snd_StrmPlayer.h.
|
private |
Definition at line 240 of file snd_StrmPlayer.h.
|
private |
Definition at line 241 of file snd_StrmPlayer.h.
|
private |
Definition at line 242 of file snd_StrmPlayer.h.
|
private |
Definition at line 243 of file snd_StrmPlayer.h.
|
private |
Definition at line 244 of file snd_StrmPlayer.h.
|
private |
Definition at line 245 of file snd_StrmPlayer.h.
|
private |
Definition at line 246 of file snd_StrmPlayer.h.
|
private |
Definition at line 247 of file snd_StrmPlayer.h.
|
private |
Definition at line 248 of file snd_StrmPlayer.h.
|
private |
Definition at line 249 of file snd_StrmPlayer.h.
|
private |
Definition at line 250 of file snd_StrmPlayer.h.
|
private |
Definition at line 251 of file snd_StrmPlayer.h.
|
private |
Definition at line 252 of file snd_StrmPlayer.h.
|
private |
Definition at line 253 of file snd_StrmPlayer.h.
|
private |
Definition at line 254 of file snd_StrmPlayer.h.
|
private |
Definition at line 255 of file snd_StrmPlayer.h.
|
private |
Definition at line 256 of file snd_StrmPlayer.h.
|
private |
Definition at line 257 of file snd_StrmPlayer.h.
|
private |
Definition at line 258 of file snd_StrmPlayer.h.
|
private |
Definition at line 259 of file snd_StrmPlayer.h.
|
private |
Definition at line 260 of file snd_StrmPlayer.h.
|
private |
Definition at line 261 of file snd_StrmPlayer.h.
|
private |
Definition at line 262 of file snd_StrmPlayer.h.
|
private |
Definition at line 263 of file snd_StrmPlayer.h.
|
private |
Definition at line 264 of file snd_StrmPlayer.h.
|
private |
Definition at line 265 of file snd_StrmPlayer.h.
|
private |
Definition at line 266 of file snd_StrmPlayer.h.
|
private |
Definition at line 267 of file snd_StrmPlayer.h.
|
private |
Definition at line 268 of file snd_StrmPlayer.h.
|
private |
Definition at line 269 of file snd_StrmPlayer.h.
|
private |
Definition at line 270 of file snd_StrmPlayer.h.
|
private |
Definition at line 271 of file snd_StrmPlayer.h.
|
private |
Definition at line 272 of file snd_StrmPlayer.h.
|
private |
Definition at line 273 of file snd_StrmPlayer.h.
|
private |
Definition at line 274 of file snd_StrmPlayer.h.
|
private |
Definition at line 275 of file snd_StrmPlayer.h.
|
private |
Definition at line 276 of file snd_StrmPlayer.h.
|
private |
Definition at line 277 of file snd_StrmPlayer.h.
|
private |
Definition at line 278 of file snd_StrmPlayer.h.
|
private |
Definition at line 279 of file snd_StrmPlayer.h.