| 52 | } |
| 53 | |
| 54 | static 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 | |
| 73 | WiiAudio::WiiAudio(const Game_ConfigAudio& cfg) : |
| 74 | GenericAudio(cfg) |
nothing calls this directly
no test coverage detected