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:
Henrik Rydgard 2015-01-11 11:40:53 +01:00
parent 81e0ab49bb
commit 3ca212ad0c
2 changed files with 10 additions and 1 deletions

View File

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

2
native

@ -1 +1 @@
Subproject commit 40848ae4b64907fec31b2562fc977c043133a275
Subproject commit 9201103abe872dcdc50e0d8331f96d9044b8f0b4