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:
parent
84aca05c89
commit
cb0ce43bfc
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue