Browse Source

wasapi: fixed compilation error of PaWasapi_GetAudioClient()

mr/6638133/HEAD
dmitrykos 1 year ago
parent
commit
d7a4cb482d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/hostapi/wasapi/pa_win_wasapi.c

+ 4
- 4
src/hostapi/wasapi/pa_win_wasapi.c View File

@@ -4915,13 +4915,13 @@ error:
// ------------------------------------------------------------------------------------------
PaError PaWasapi_GetAudioClient(PaStream *pStream, void **pAudioClient, int bOutput)
{
if (pAudioClient == NULL)
return paUnanticipatedHostError;

PaWasapiStream *stream = (PaWasapiStream *)pStream;
PaWasapiStream *stream = (PaWasapiStream *)pStream;
if (stream == NULL)
return paBadStreamPtr;

if (pAudioClient == NULL)
return paUnanticipatedHostError;

(*pAudioClient) = (bOutput == TRUE ? stream->out.clientParent : stream->in.clientParent);

return paNoError;

Loading…
Cancel
Save