mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
Prepare for interchangable Windows audio backends
This commit is contained in:
1 parent
26e4cb4a21
commit
c8dfcd5e74
5 files changed
+140
-142
No files matched your search
+4
-1
@@ -256,10 +256,13 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
}
|
||||
}
|
||||
|
||||
// Ugly!
|
||||
extern WindowsAudioBackend *winAudioBackend;
|
||||
|
||||
int System_GetPropertyInt(SystemProperty prop) {
|
||||
switch (prop) {
|
||||
case SYSPROP_AUDIO_SAMPLE_RATE:
|
||||
return DSound_GetSampleRate();
|
||||
return winAudioBackend ? winAudioBackend->GetSampleRate() : -1;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user