MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / waveOutProc

Method waveOutProc

extensions/olcPGEX_Sound.h:508–514  ·  view source on GitHub ↗

Handler for soundcard request for more data

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected