diff audioio/AudioPulseAudioTarget.cpp @ 406:53fee450891e

Remove redundant code (sourceChannels must be at least 2 "because we offer pan") (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 09:23:02 +0100
parents 0876ea394902
children 7709bb9a1130
line wrap: on
line diff
--- a/audioio/AudioPulseAudioTarget.cpp	Wed Sep 03 09:21:05 2014 +0100
+++ b/audioio/AudioPulseAudioTarget.cpp	Wed Sep 03 09:23:02 2014 +0100
@@ -252,18 +252,6 @@
                 }
 	    }
 
-	} else if (ch == 1 && sourceChannels == 1) {
-
-	    for (int i = 0; i < nframes; ++i) {
-                if (i < received) {
-                    output[i * 2 + ch] = tmpbuf[0][i] * m_outputGain;
-                    float sample = fabsf(output[i * 2 + ch]);
-                    if (sample > peak) peak = sample;
-                } else {
-                    output[i * 2 + ch] = 0;
-                }
-	    }
-
 	} else {
 	    for (int i = 0; i < nframes; ++i) {
 		output[i * 2 + ch] = 0;