Handler for soundcard request for more data
| 506 | |
| 507 | // Handler for soundcard request for more data |
| 508 | void CALLBACK SOUND::waveOutProc(HWAVEOUT hWaveOut, UINT uMsg, DWORD dwParam1, DWORD dwParam2) |
| 509 | { |
| 510 | if (uMsg != WOM_DONE) return; |
| 511 | m_nBlockFree++; |
| 512 | std::unique_lock<std::mutex> lm(m_muxBlockNotZero); |
| 513 | m_cvBlockNotZero.notify_one(); |
| 514 | } |
| 515 | |
| 516 | // Audio thread. This loop responds to requests from the soundcard to fill 'blocks' |
| 517 | // with audio data. If no requests are available it goes dormant until the sound |
nothing calls this directly
no outgoing calls
no test coverage detected