From b6fea8a35568d8932096e300ef2f7d3a714b0f62 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 11 Jan 2015 14:15:26 +0100 Subject: [PATCH] SDL: Implement SYSPROP_AUDIO_SAMPLE_RATE query --- base/PCMain.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/base/PCMain.cpp b/base/PCMain.cpp index e16691ce0a..ba82636eba 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -312,7 +312,14 @@ std::string System_GetProperty(SystemProperty prop) { } } -int System_GetPropertyInt(SystemProperty prop) {return -1;} +int System_GetPropertyInt(SystemProperty prop) { + switch (prop) { + case SYSPROP_AUDIO_SAMPLE_RATE: + return 44100; + default: + return -1; + } +} InputState input_state;