Skip to content

Commit

Permalink
Fix wasapi input handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
elrinor committed Oct 5, 2024
1 parent af3b361 commit 44d2f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5420,7 +5420,7 @@ bool RtApiWasapi::probeDeviceOpen( unsigned int deviceId, StreamMode mode, unsig
stream_.apiHandle = ( void* ) new WasapiHandle();

if ( isInput ) {
ComPtr<IAudioClient> captureAudioClient = ( ( WasapiHandle* ) stream_.apiHandle )->captureAudioClient;
ComPtr<IAudioClient>& captureAudioClient = ( ( WasapiHandle* ) stream_.apiHandle )->captureAudioClient;

hr = devicePtr->Activate( __uuidof( IAudioClient ), CLSCTX_ALL,
NULL, ( void** ) &captureAudioClient );
Expand Down

0 comments on commit 44d2f4a

Please sign in to comment.