NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::detail::SoundThread Class Reference

Description

Definition at line 26 of file snd_SoundThread.h.

Classes

class  AutoLock
 
class  PlayerCallback
 
class  SoundFrameCallback
 

Public Member Functions

bool Create (s32 priority, void *stack, ulong stackSize)
 
void Shutdown ()
 
void Lock ()
 
void Unlock ()
 
void RegisterPlayerCallback (PlayerCallback *callback)
 
void UnregisterPlayerCallback (PlayerCallback *callback)
 

Static Public Member Functions

static SoundThreadGetInstance ()
 

Private Member Functions

void AxCallbackProc ()
 
void SoundThreadProc ()
 
void FrameProcess ()
 

Static Private Member Functions

static void AxCallbackFunc ()
 
static void * SoundThreadFunc (void *arg)
 

Private Attributes

OSThread mThread
 
OSThreadQueue mThreadQueue
 
OSMessageQueue mMsgQueue
 
OSMessage mMsgBuffer [THREAD_MESSAGE_BUFSIZE]
 
ulong * mStackEnd
 
OSMutex mMutex
 
AxManager::CallbackListNode mAxCallbackNode
 
SoundFrameCallback::LinkList mSoundFrameCallbackList
 
PlayerCallback::LinkList mPlayerCallbackList
 
ulong mProcessTick
 
bool mCreateFlag
 
bool field_0x395
 

Static Private Attributes

static int const MESSAGE_SHUTDOWN = 1 << 1
 
static int const MESSAGE_AX_CALLBACK = 1 << 0
 
static int const THREAD_MESSAGE_BUFSIZE = 4
 

Member Function Documentation

◆ Lock()

void nw4r::snd::detail::SoundThread::Lock ( )
inline

Definition at line 88 of file snd_SoundThread.h.

◆ Unlock()

void nw4r::snd::detail::SoundThread::Unlock ( )
inline

Definition at line 89 of file snd_SoundThread.h.

Member Data Documentation

◆ MESSAGE_SHUTDOWN

int const nw4r::snd::detail::SoundThread::MESSAGE_SHUTDOWN = 1 << 1
staticprivate

Definition at line 108 of file snd_SoundThread.h.

◆ MESSAGE_AX_CALLBACK

int const nw4r::snd::detail::SoundThread::MESSAGE_AX_CALLBACK = 1 << 0
staticprivate

Definition at line 109 of file snd_SoundThread.h.

◆ THREAD_MESSAGE_BUFSIZE

int const nw4r::snd::detail::SoundThread::THREAD_MESSAGE_BUFSIZE = 4
staticprivate

Definition at line 110 of file snd_SoundThread.h.

◆ mThread

OSThread nw4r::snd::detail::SoundThread::mThread
private

Definition at line 114 of file snd_SoundThread.h.

◆ mThreadQueue

OSThreadQueue nw4r::snd::detail::SoundThread::mThreadQueue
private

Definition at line 115 of file snd_SoundThread.h.

◆ mMsgQueue

OSMessageQueue nw4r::snd::detail::SoundThread::mMsgQueue
private

Definition at line 116 of file snd_SoundThread.h.

◆ mMsgBuffer

OSMessage nw4r::snd::detail::SoundThread::mMsgBuffer[THREAD_MESSAGE_BUFSIZE]
private

Definition at line 117 of file snd_SoundThread.h.

◆ mStackEnd

ulong* nw4r::snd::detail::SoundThread::mStackEnd
private

Definition at line 118 of file snd_SoundThread.h.

◆ mMutex

OSMutex nw4r::snd::detail::SoundThread::mMutex
private

Definition at line 119 of file snd_SoundThread.h.

◆ mAxCallbackNode

AxManager::CallbackListNode nw4r::snd::detail::SoundThread::mAxCallbackNode
private

Definition at line 120 of file snd_SoundThread.h.

◆ mSoundFrameCallbackList

SoundFrameCallback::LinkList nw4r::snd::detail::SoundThread::mSoundFrameCallbackList
private

Definition at line 121 of file snd_SoundThread.h.

◆ mPlayerCallbackList

PlayerCallback::LinkList nw4r::snd::detail::SoundThread::mPlayerCallbackList
private

Definition at line 122 of file snd_SoundThread.h.

◆ mProcessTick

ulong nw4r::snd::detail::SoundThread::mProcessTick
private

Definition at line 123 of file snd_SoundThread.h.

◆ mCreateFlag

bool nw4r::snd::detail::SoundThread::mCreateFlag
private

Definition at line 124 of file snd_SoundThread.h.

◆ field_0x395

bool nw4r::snd::detail::SoundThread::field_0x395
private

Definition at line 125 of file snd_SoundThread.h.