MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modAudioWindowProc

Function modAudioWindowProc

modules/pins/i2s/audioout.c:1400–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398}
1399
1400LRESULT CALLBACK modAudioWindowProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
1401{
1402 switch (message) {
1403 case WM_CALLBACK: {
1404 modAudioOut out = (modAudioOut)lParam;
1405 switch (wParam) {
1406 case 0:
1407 deliverCallbacks(out->the, out, NULL, 0);
1408 break;
1409 case 1:
1410 doRenderSamples(out);
1411 break;
1412 default:
1413 break;
1414 }
1415 return 0;
1416 }
1417 }
1418 return DefWindowProc(window, message, wParam, lParam);
1419}
1420
1421DWORD WINAPI directSoundProc(LPVOID lpParameter)
1422{

Callers

nothing calls this directly

Calls 2

doRenderSamplesFunction · 0.85
deliverCallbacksFunction · 0.70

Tested by

no test coverage detected