| 425 | } |
| 426 | |
| 427 | static void ndspThreadMain(void* arg) |
| 428 | { |
| 429 | ndspThreadRun = true; |
| 430 | while (ndspThreadRun) |
| 431 | { |
| 432 | ndspSync(); |
| 433 | |
| 434 | if (ndspMaster.callback) |
| 435 | ndspMaster.callback(ndspMaster.callbackData); |
| 436 | |
| 437 | if (bSleeping || bCancelReceived || !bDspReady) |
| 438 | continue; |
| 439 | |
| 440 | ndspUpdateMaster(); |
| 441 | // TODO: call aux user callback if enabled |
| 442 | // TODO: execute DSP effects |
| 443 | ndspiUpdateChn(); |
| 444 | |
| 445 | ndspSetCounter(ndspBufferCurId, ndspFrameId++); |
| 446 | svcSignalEvent(dspSem); |
| 447 | ndspBufferCurId = ndspFrameId & 1; |
| 448 | |
| 449 | frameCount++; |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | void ndspUseComponent(const void* binary, u32 size, u16 progMask, u16 dataMask) |
| 454 | { |
nothing calls this directly
no test coverage detected