From 3ca212ad0c4f8e44dcc6b4bf2e5a3187dae50df3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 11 Jan 2015 11:40:53 +0100 Subject: [PATCH] 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 --- UI/DevScreens.cpp | 9 +++++++++ native | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp index 536e15d0b8..61b3eb2cdf 100644 --- a/UI/DevScreens.cpp +++ b/UI/DevScreens.cpp @@ -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); diff --git a/native b/native index 40848ae4b6..9201103abe 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 40848ae4b64907fec31b2562fc977c043133a275 +Subproject commit 9201103abe872dcdc50e0d8331f96d9044b8f0b4