diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index 3a2640e92..cc5656ec9 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -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;