diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-10 17:58:36 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-10 17:58:36 +0000 |
commit | 4ca2367e34e095419fa7e4de240dd7416575398a (patch) | |
tree | 7d27bc3b8f4e4dfb648d86a8ff1160c5700cc935 /apps/codecs/libgme/hes_emu.c | |
parent | 35c1df9cd5a587aec4f5d0a059f48ca4c40baa2a (diff) |
3rd part of FS#12176. Gain setting migrated to fixed point for libgme.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30277 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/hes_emu.c')
-rw-r--r-- | apps/codecs/libgme/hes_emu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libgme/hes_emu.c b/apps/codecs/libgme/hes_emu.c index 112cd75b1d..ae4e68e48e 100644 --- a/apps/codecs/libgme/hes_emu.c +++ b/apps/codecs/libgme/hes_emu.c @@ -61,7 +61,7 @@ void Hes_init( struct Hes_Emu* this ) this->timer.raw_load = 0; this->silence_lookahead = 6; - Sound_set_gain( this, 1.11 ); + Sound_set_gain( this, (int)(FP_ONE_GAIN*1.11) ); Rom_init( &this->rom, 0x2000 ); @@ -131,8 +131,8 @@ blargg_err_t Hes_load( struct Hes_Emu* this, void* data, long size ) this->voice_count_ = osc_count + adpcm_osc_count; - Apu_volume( &this->apu, this->gain_ ); - Adpcm_volume( &this->adpcm, this->gain_ ); + Apu_volume( &this->apu, (double)(this->gain_)/FP_ONE_GAIN ); + Adpcm_volume( &this->adpcm, (double)(this->gain_)/FP_ONE_GAIN ); // Setup buffer this->clock_rate_ = 7159091; |