summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Gashlin <agashlin@gmail.com>2007-02-14 07:33:41 +0000
committerAdam Gashlin <agashlin@gmail.com>2007-02-14 07:33:41 +0000
commit4de600b46ecdac7c9b9f861ce54d446189718538 (patch)
tree78e994ea5795b3ac6de013b750f2a7ac509e44ed
parent5599d6806d12d22b724d7967717edae07db3e08f (diff)
downloadrockbox-4de600b46ecdac7c9b9f861ce54d446189718538.tar.gz
rockbox-4de600b46ecdac7c9b9f861ce54d446189718538.zip
Remove dishonest spc amplification
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12301 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/spc/Spc_Dsp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/spc/Spc_Dsp.h b/apps/codecs/spc/Spc_Dsp.h
index b297630b42..0cf55dee8a 100644
--- a/apps/codecs/spc/Spc_Dsp.h
+++ b/apps/codecs/spc/Spc_Dsp.h
@@ -487,9 +487,8 @@ static void DSP_run_( struct Spc_Dsp* this, long count, int32_t* out_buf )
487 /* (g.flags & 0x40) ? 30 : 14 */ 487 /* (g.flags & 0x40) ? 30 : 14 */
488 int const global_muting = ((this->r.g.flags & 0x40) >> 2) + 14; 488 int const global_muting = ((this->r.g.flags & 0x40) >> 2) + 14;
489 489
490 /* scaling to offset quietage */ 490 int const global_vol_0 = this->r.g.volume_0;
491 int const global_vol_0 = this->r.g.volume_0 * 3; 491 int const global_vol_1 = this->r.g.volume_1;
492 int const global_vol_1 = this->r.g.volume_1 * 3;
493 492
494 /* each rate divides exactly into 0x7800 without remainder */ 493 /* each rate divides exactly into 0x7800 without remainder */
495 int const env_rate_init = 0x7800; 494 int const env_rate_init = 0x7800;