Cocoa Port:

- Fix bug where SPU settings were not properly being set. (Regression from r4882.)
This commit is contained in:
rogerman 2013-11-21 20:41:54 +00:00
parent e05ef815ce
commit 5f44858edd
1 changed files with 4 additions and 6 deletions

View File

@ -264,10 +264,9 @@
[property setValue:[NSNumber numberWithInteger:modeID] forKey:@"spuSyncMode"];
OSSpinLockUnlock(&spinlockSpuSyncMode);
NSInteger methodID = [self spuSyncMethod];
pthread_mutex_lock(self.mutexProducer);
SPU_SetSynchMode(modeID, methodID);
CommonSettings.SPU_sync_mode = (int)modeID;
SPU_SetSynchMode(CommonSettings.SPU_sync_mode, CommonSettings.SPU_sync_method);
pthread_mutex_unlock(self.mutexProducer);
}
@ -286,10 +285,9 @@
[property setValue:[NSNumber numberWithInteger:methodID] forKey:@"spuSyncMethod"];
OSSpinLockUnlock(&spinlockSpuSyncMethod);
NSInteger modeID = [self spuSyncMode];
pthread_mutex_lock(self.mutexProducer);
SPU_SetSynchMode(modeID, methodID);
CommonSettings.SPU_sync_method = (int)methodID;
SPU_SetSynchMode(CommonSettings.SPU_sync_mode, CommonSettings.SPU_sync_method);
pthread_mutex_unlock(self.mutexProducer);
}