From 2be80e34bf7073e0ab97e127930697d244110b87 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 9 Oct 2013 11:23:55 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3756 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/replaygain.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/qmmp/replaygain.cpp b/src/qmmp/replaygain.cpp index c653c3fa3..86da8c759 100644 --- a/src/qmmp/replaygain.cpp +++ b/src/qmmp/replaygain.cpp @@ -114,17 +114,12 @@ qint64 ReplayGain::read(Decoder *decoder, char *data, qint64 size) qint64 samples = size >> (m_sample_size >> 1); //size / m_sample_size; - double s = 0; - switch (m_format) { case Qmmp::PCM_S8: { for (qint64 i = 0; i < samples; i++) - { - s = qBound(-128.0, ((char*)data)[i] * m_scale, 127.0); - ((char*)data)[i] = s; - } + ((char*)data)[i] = qBound(-128.0, ((char*)data)[i] * m_scale, 127.0); break; } case Qmmp::PCM_S16LE: -- cgit v1.2.3-13-gbd6f