Browse Source

Merge branch 'winrt' into 'master'

WASAPI: Fixed compilation error of PaWasapi_GetAudioClient().

Merged-on: https://assembla.com/code/portaudio/git/merge_requests/6638133
mr/new/69d1b1e3cc817ab3a594ac66fec3b8f5d2feab31
Dmitry Kostjuchenko 1 year ago
parent
commit
69d1b1e3cc
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