changeset 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 ddfb480c70a0
children b0b49da13975
files audioio/AudioPulseAudioTarget.cpp
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
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;