MCPcopy Create free account
hub / github.com/EasyRPG/Player / AudioThread

Function AudioThread

src/platform/wii/audio.cpp:54–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void *AudioThread (void *) {
55 while (!stopaudio) {
56 instance->LockMutex();
57
58 // clear old data
59 memset(buffer[cur_buf], 0, SNDBUFFERSIZE);
60
61 instance->Decode(buffer[cur_buf], SNDBUFFERSIZE);
62
63 // make sure data is in main memory
64 DCFlushRange(buffer[cur_buf], SNDBUFFERSIZE);
65
66 instance->UnlockMutex();
67
68 LWP_ThreadSleep(audioqueue);
69 }
70 return nullptr;
71}
72
73WiiAudio::WiiAudio(const Game_ConfigAudio& cfg) :
74 GenericAudio(cfg)

Callers

nothing calls this directly

Calls 3

LockMutexMethod · 0.45
DecodeMethod · 0.45
UnlockMutexMethod · 0.45

Tested by

no test coverage detected