MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / wasapiSubmitBuffer

Function wasapiSubmitBuffer

extlibs/soloud/src/backend/wasapi/soloud_wasapi.cpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 };
66
67 static void wasapiSubmitBuffer(WASAPIData *aData, UINT32 aFrames)
68 {
69 BYTE *buffer = 0;
70 if (FAILED(aData->renderClient->GetBuffer(aFrames, &buffer)))
71 {
72 return;
73 }
74 aData->soloud->mixSigned16((short *)buffer, aFrames);
75 aData->renderClient->ReleaseBuffer(aFrames, 0);
76 }
77
78 static void wasapiThread(LPVOID aParam)
79 {

Callers 1

wasapiThreadFunction · 0.85

Calls 1

mixSigned16Method · 0.80

Tested by

no test coverage detected