mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
Make the sample rate queryable as a sysprop
This commit is contained in:
1 parent
cac7a2feed
commit
1b055fd07e
4 files changed
+17
-6
No files matched your search
+7
-1
@@ -30,6 +30,7 @@
|
||||
#include "Core/Config.h"
|
||||
#include "Core/SaveState.h"
|
||||
#include "Windows/EmuThread.h"
|
||||
#include "Windows/DSoundStream.h"
|
||||
#include "ext/disarm.h"
|
||||
|
||||
#include "Common/LogManager.h"
|
||||
@@ -256,7 +257,12 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
}
|
||||
|
||||
int System_GetPropertyInt(SystemProperty prop) {
|
||||
return -1;
|
||||
switch (prop) {
|
||||
case SYSPROP_AUDIO_SAMPLE_RATE:
|
||||
return DSound_GetSampleRate();
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
void System_SendMessage(const char *command, const char *parameter) {
|
||||
|
||||
Reference in new issue
Block a user