]> Repos - portaudio/commitdiff
fixed bug that was causing memory corruption in PA/ALSA when host sample format was...
authorrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 6 Aug 2013 08:26:55 +0000 (08:26 +0000)
committerrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 6 Aug 2013 08:26:55 +0000 (08:26 +0000)
src/common/pa_process.c

index 5b1e5190a17c2941ed5b58cd536d9ba665bda430..100960244e14548c6b394123c90e9ac187edc098 100644 (file)
@@ -238,7 +238,7 @@ PaError PaUtil_InitializeBufferProcessor( PaUtilBufferProcessor* bp,
         bp->inputConverter =
             PaUtil_SelectConverter( hostInputSampleFormat, userInputSampleFormat, tempInputStreamFlags );
 
-        bp->inputZeroer = PaUtil_SelectZeroer( hostInputSampleFormat );
+        bp->inputZeroer = PaUtil_SelectZeroer( userInputSampleFormat );
             
         bp->userInputIsInterleaved = (userInputSampleFormat & paNonInterleaved)?0:1;