spu: fix a sort of a memory leak when synch mode was selected but output was disabled. this may have been done for a reason....?

This commit is contained in:
zeromus 2010-08-15 23:50:47 +00:00
parent 84aca05c89
commit cb0ce43bfc
1 changed files with 1 additions and 1 deletions

View File

@ -1360,7 +1360,7 @@ void SPU_Emulate_core()
bool mix = driver->AVI_IsRecording() || driver->WAV_IsRecording() || synchronize; bool mix = driver->AVI_IsRecording() || driver->WAV_IsRecording() || synchronize;
SPU_MixAudio(mix,SPU_core,spu_core_samples); SPU_MixAudio(mix,SPU_core,spu_core_samples);
if(synchronize) if(synchronize && SPU_user)
synchronizer->enqueue_samples(SPU_core->outbuf, spu_core_samples); synchronizer->enqueue_samples(SPU_core->outbuf, spu_core_samples);
} }