mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
Remove polling requirement from DSound audio backend
Might as well sleep for a short period instead, same effect really.
This commit is contained in:
1 parent
a6e5d59d9a
commit
21bd50dcb0
8 files changed
+25
-60
No files matched your search
+1
-8
@@ -239,15 +239,8 @@ int NativeMix(short *audio, int num_samples) {
|
||||
if (GetUIState() != UISTATE_INGAME) {
|
||||
g_BackgroundAudio.Play();
|
||||
}
|
||||
|
||||
int sample_rate = System_GetPropertyInt(SYSPROP_AUDIO_SAMPLE_RATE);
|
||||
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
|
||||
|
||||
#ifdef _WIN32
|
||||
winAudioBackend->Update();
|
||||
#endif
|
||||
|
||||
return num_samples;
|
||||
return __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
|
||||
}
|
||||
|
||||
// This is called before NativeInit so we do a little bit of initialization here.
|
||||
|
||||
Reference in new issue
Block a user