SDL: Implement SYSPROP_AUDIO_SAMPLE_RATE query

This commit is contained in:
Henrik Rydgard 2015-01-11 14:15:26 +01:00
parent 9201103abe
commit b6fea8a355

View File

@ -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;