fix a bit of a boneheaded performance-slaying bug in spu synch mode

This commit is contained in:
zeromus 2009-10-21 07:53:22 +00:00
parent 2a46b30940
commit c5e9f51523
2 changed files with 2 additions and 3 deletions

View File

@ -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
{ {

View File

@ -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;