Mercurial > audlegacy-plugins
diff src/console/Spc_Dsp.cxx @ 1498:a1fccf242404
made SPC playback reverb a configuration option till the problem can be
solved
author | mf0102 <0102@gmx.at> |
---|---|
date | Thu, 16 Aug 2007 14:47:14 +0200 |
parents | b391fddc35b2 |
children |
line wrap: on
line diff
--- a/src/console/Spc_Dsp.cxx Thu Aug 16 18:22:00 2007 +0300 +++ b/src/console/Spc_Dsp.cxx Thu Aug 16 14:47:14 2007 +0200 @@ -1,5 +1,8 @@ // snes_spc 0.9.0. http://www.slack.net/~ant/ +// TODO: we can remove this as soon as the reverb problem is fixed. -- mf0102 +#include "Audacious_Config.h" + #include "Spc_Dsp.h" #include "blargg_endian.h" @@ -589,8 +592,9 @@ // Echo out if ( !(REG(flg) & 0x20) ) { - int l = (echo_out_l >> 7) + ((echo_in_l * (int8_t) REG(efb)) >> 16); - int r = (echo_out_r >> 7) + ((echo_in_r * (int8_t) REG(efb)) >> 16); + unsigned shift = audcfg.inc_spc_reverb ? 14 : 16; + int l = (echo_out_l >> 7) + ((echo_in_l * (int8_t) REG(efb)) >> shift); + int r = (echo_out_r >> 7) + ((echo_in_r * (int8_t) REG(efb)) >> shift); // just to help pass more validation tests #if SPC_MORE_ACCURACY