From 1b5bf730caffa702de34a6db9f0ae93fbbd88eed Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 11 Jan 2015 14:17:23 +0100 Subject: [PATCH] Same as the last one for BlackBerry and Qt --- base/BlackberryMain.cpp | 9 ++++++++- base/QtMain.cpp | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/base/BlackberryMain.cpp b/base/BlackberryMain.cpp index 0ce861247b..47aabf651c 100644 --- a/base/BlackberryMain.cpp +++ b/base/BlackberryMain.cpp @@ -44,7 +44,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; + } +} void System_SendMessage(const char *command, const char *parameter) { if (!strcmp(command, "finish")) { diff --git a/base/QtMain.cpp b/base/QtMain.cpp index 629ccd061c..c1aba18f66 100644 --- a/base/QtMain.cpp +++ b/base/QtMain.cpp @@ -69,7 +69,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; + } +} void System_SendMessage(const char *command, const char *parameter) { if (!strcmp(command, "finish")) {