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

CQTexperiment
Chris Moeller 2013-09-30 09:17:56 -07:00
parent 0b966e9014
commit 87198d04c0
1 changed files with 3 additions and 2 deletions

View File

@ -734,8 +734,9 @@ struct gsf_sound_out : public GBASoundOut
{
GBASystem * system = ( GBASystem * ) emulatorCore;
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;