# HG changeset patch # User Chris Cannam # Date 1409732582 -3600 # Node ID 53fee450891ebf80359f506d27531709217e837e # Parent ddfb480c70a02cd095f1c3c198bf8022f2e73471 Remove redundant code (sourceChannels must be at least 2 "because we offer pan") (from coverity scan) diff -r ddfb480c70a0 -r 53fee450891e audioio/AudioPulseAudioTarget.cpp --- 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;