summaryrefslogtreecommitdiff
path: root/replaygain.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-09 16:59:00 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-09 16:59:00 +0100
commit5612863563b14b56221a23643d984b429c6f3a07 (patch)
tree7c0a76c517023ef9c0a9c9277b14271a1440f012 /replaygain.c
parente2a3d27f79358847449eace52512a4e70a020e32 (diff)
fixed replaygain for 32bit streams
Diffstat (limited to 'replaygain.c')
-rw-r--r--replaygain.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/replaygain.c b/replaygain.c
index 764b98df..5f3be0e4 100644
--- a/replaygain.c
+++ b/replaygain.c
@@ -211,12 +211,6 @@ apply_replay_gain_int32 (playItem_t *it, char *bytes, int size) {
int32_t *s = (int32_t*)bytes;
for (int j = 0; j < size/4; j++) {
int64_t sample = ((int32_t)(*s)) * vol / 1000;
- if (sample > 0x7fffffff) {
- sample = 0x7fffffff;
- }
- else if (sample < -0x80000000) {
- sample = -0x80000000;
- }
*s = (int32_t)sample;
s++;
}