Fix WASAPI channel offset 204/head
authorMarcus Tomlinson <themarcustomlinson@gmail.com>
Mon, 6 May 2019 17:41:30 +0000 (18:41 +0100)
committerMarcus Tomlinson <themarcustomlinson@gmail.com>
Mon, 6 May 2019 17:41:30 +0000 (18:41 +0100)
RtAudio.cpp

index 0837d98ef1e8d6eafecd51505ba6d6f7f569552d..e7c3ad12cce4542e6aa5663c7feaae279ba92cac 100644 (file)
@@ -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 );