fix a bit of a boneheaded performance-slaying bug in spu synch mode
This commit is contained in:
parent
2a46b30940
commit
c5e9f51523
|
@ -1340,8 +1340,7 @@ void SPU_Emulate_user(bool mix)
|
||||||
if(synchmode == ESynchMode_Synchronous)
|
if(synchmode == ESynchMode_Synchronous)
|
||||||
{
|
{
|
||||||
int done = synchronizer->output_samples(SPU_user->outbuf, audiosize);
|
int done = synchronizer->output_samples(SPU_user->outbuf, audiosize);
|
||||||
for(int j=0;j<done;j++)
|
SNDCore->UpdateAudio(SPU_user->outbuf,done);
|
||||||
SNDCore->UpdateAudio(&SPU_user->outbuf[j*2],1);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1203,7 +1203,7 @@ static void StepRunLoop_Core()
|
||||||
{
|
{
|
||||||
Lock lock;
|
Lock lock;
|
||||||
NDS_exec<false>();
|
NDS_exec<false>();
|
||||||
SPU_Emulate_user();
|
//SPU_Emulate_user();
|
||||||
win_sound_samplecounter = 735;
|
win_sound_samplecounter = 735;
|
||||||
}
|
}
|
||||||
inFrameBoundary = true;
|
inFrameBoundary = true;
|
||||||
|
|
Loading…
Reference in New Issue