From 39e4987ea5c2326249583b53afcd9038d8209ba9 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 11 Aug 2011 06:22:56 +0000 Subject: Reduce gain of VGM codec to avoid clipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30279 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libgme/vgm_emu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/codecs/libgme/vgm_emu.c b/apps/codecs/libgme/vgm_emu.c index 5d230ed..0cd1768 100644 --- a/apps/codecs/libgme/vgm_emu.c +++ b/apps/codecs/libgme/vgm_emu.c @@ -104,7 +104,7 @@ void Vgm_init( struct Vgm_Emu* this ) // Set sound gain, a value too high // will cause saturation - Sound_set_gain(this, (int)FP_ONE_GAIN); + Sound_set_gain(this, (int)(FP_ONE_GAIN*0.7)); // Unload this->voice_count = 0; -- cgit v1.1