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")) {