mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Update native, expose platform audio sample rate in System Information on Android
When these don't match, we should really resample to get access to the low latency audio path. TODO
This commit is contained in:
1 parent
81e0ab49bb
commit
3ca212ad0c
2 files changed
+10
-1
No files matched your search
@@ -323,6 +323,15 @@ void SystemInfoScreen::CreateViews() {
|
||||
#ifdef _WIN32
|
||||
deviceSpecs->Add(new InfoItem("Driver Version", System_GetProperty(SYSPROP_GPUDRIVER_VERSION)));
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
deviceSpecs->Add(new ItemHeader("Audio Information"));
|
||||
deviceSpecs->Add(new InfoItem("Sample rate", StringFromFormat("%d Hz", System_GetPropertyInt(SYSPROP_AUDIO_SAMPLE_RATE))));
|
||||
deviceSpecs->Add(new InfoItem("Frames per buffer", StringFromFormat("%d", System_GetPropertyInt(SYSPROP_AUDIO_FRAMES_PER_BUFFER))));
|
||||
deviceSpecs->Add(new InfoItem("Optimal sample rate", StringFromFormat("%d Hz", System_GetPropertyInt(SYSPROP_AUDIO_OPTIMAL_SAMPLE_RATE))));
|
||||
deviceSpecs->Add(new InfoItem("Optimal frames per buffer", StringFromFormat("%d", System_GetPropertyInt(SYSPROP_AUDIO_OPTIMAL_FRAMES_PER_BUFFER))));
|
||||
#endif
|
||||
|
||||
deviceSpecs->Add(new ItemHeader("Version Information"));
|
||||
std::string apiVersion = thin3d->GetInfoString(T3DInfo::APIVERSION);
|
||||
apiVersion.resize(30);
|
||||
|
||||
+1
-1
Submodule native updated: 40848ae4b6...9201103abe.
Reference in new issue
Block a user