Prepare for interchangable Windows audio backends

This commit is contained in:
Henrik Rydgard committed 2015-01-11 21:00:56 +01:00
1 parent 26e4cb4a21
commit c8dfcd5e74
5 files changed
+140 -142

No files matched your search

+4 -1
View File
@@ -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;
}