mirror of https://github.com/snes9xgit/snes9x.git
Simpler echo buffer fix
This commit is contained in:
parent
a2bd5acf77
commit
c9cb2724d9
|
@ -717,14 +717,10 @@ inline void SPC_DSP::echo_write( int ch )
|
|||
{
|
||||
if ( !(m.t_echo_enabled & 0x20) )
|
||||
{
|
||||
SET_LE16A( ECHO_PTR( ch ), m.t_echo_out [ch] );
|
||||
|
||||
if ( m.t_echo_ptr >= 0xffc0 )
|
||||
{
|
||||
if ( m.t_echo_ptr >= 0xffc0 && rom_enabled )
|
||||
SET_LE16A( &hi_ram [m.t_echo_ptr + ch * 2 - 0xffc0], m.t_echo_out [ch] );
|
||||
if ( rom_enabled )
|
||||
SET_LE16A( ECHO_PTR( ch ), GET_LE16A( &rom [m.t_echo_ptr + ch * 2 - 0xffc0] ) );
|
||||
}
|
||||
else
|
||||
SET_LE16A( ECHO_PTR( ch ), m.t_echo_out [ch] );
|
||||
}
|
||||
|
||||
m.t_echo_out [ch] = 0;
|
||||
|
|
Loading…
Reference in New Issue