Skip to content

Commit

Permalink
wasapi: fixed compilation error of PaWasapi_GetAudioClient()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrykos committed Jul 19, 2018
1 parent 64ad96e commit d7a4cb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hostapi/wasapi/pa_win_wasapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4915,13 +4915,13 @@ PaError PaWasapi_GetJackDescription(PaDeviceIndex nDevice, int jindex, PaWasapiJ
// ------------------------------------------------------------------------------------------
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;
Expand Down

0 comments on commit d7a4cb4

Please sign in to comment.