Minor bugfix so GSF decoder doesn't slowly overbuffer into oblivion

This commit is contained in:
Chris Moeller 2013-09-30 09:17:56 -07:00
parent 0b966e9014
commit 87198d04c0

View file

@ -734,8 +734,9 @@ struct gsf_sound_out : public GBASoundOut
{ {
GBASystem * system = ( GBASystem * ) emulatorCore; GBASystem * system = ( GBASystem * ) emulatorCore;
struct gsf_sound_out * sound_out = ( struct gsf_sound_out * ) emulatorExtra; struct gsf_sound_out * sound_out = ( struct gsf_sound_out * ) emulatorExtra;
CPULoop( system, 250000 ); if ( frames * 4 > sound_out->samples_written )
CPULoop( system, 250000 );
UInt32 frames_rendered = sound_out->samples_written / 4; UInt32 frames_rendered = sound_out->samples_written / 4;