- fixed SPC music loops

This reverts the following commit from game-music-emu repository
49238f9ae5

https://forum.zdoom.org/viewtopic.php?t=62613
This commit is contained in:
alexey.lysiuk 2018-12-29 15:49:02 +02:00
parent f35ac75ca2
commit df2bef2f60

View file

@ -299,11 +299,6 @@ blargg_err_t Spc_Emu::start_track_( int track )
RETURN_ERR( apu.load_spc( file_data, file_size ) );
filter.set_gain( (int) (gain() * SPC_Filter::gain_unit) );
apu.clear_echo();
track_info_t spc_info;
RETURN_ERR( track_info_( &spc_info, track ) );
// Set a default track length, need a non-zero fadeout
if ( spc_info.length > 0 )
set_fade ( spc_info.length, 50 );
return 0;
}