From: Marcus Tomlinson Date: Mon, 6 May 2019 17:41:30 +0000 (+0100) Subject: Fix WASAPI channel offset X-Git-Url: https://git.carlh.net/gitweb/?p=rtaudio.git;a=commitdiff_plain;h=50e9bba7559500f1ba01f3d8bc29ce15969d49ca Fix WASAPI channel offset --- diff --git a/RtAudio.cpp b/RtAudio.cpp index 0837d98..e7c3ad1 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4849,7 +4849,7 @@ bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne stream_.doConvertBuffer[mode] = true; if ( stream_.doConvertBuffer[mode] ) - setConvertInfo( mode, 0 ); + setConvertInfo( mode, firstChannel ); // Allocate necessary internal buffers bufferBytes = stream_.nUserChannels[mode] * stream_.bufferSize * formatBytes( stream_.userFormat );