summaryrefslogtreecommitdiffstats
path: root/src/plugins/opensles/opensles.pro
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2015-11-17 16:05:09 +0100
committerChristian Stromme <christian.stromme@theqtcompany.com>2016-01-08 00:04:12 +0000
commit3bd9da9aba63b51114a3602313e51085954be194 (patch)
tree9ddf571092e5793c26e4c4009a510799db7c5fe4 /src/plugins/opensles/opensles.pro
parentddaacc147e1df96ac49d4276dc2cd623bb084bed (diff)
Android: Improve detection of optimal settings for QAudioOutput.
This change will try to detect the optimal buffer size and sample-rate on Android (requires API level 17+). If the device supports low-latency playback, then it's recommended that application developers check the preferred sample-rate through QAudioDeviceInfo::preferredFormat(). On most devices the preferred sample rate seems to be 48 KHz, so this is now the default instead of 44.1 KHz. Note that not all devices supports "proper" low-latency playback, and there are no APIs to retrieve information about how many devices that can be active at the same time; The only remotely quantitative value I've found is "a few"... Change-Id: I0708738b4a31f6bf9e88e9a816679cb688e023f3 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins/opensles/opensles.pro')
-rw-r--r--src/plugins/opensles/opensles.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/opensles/opensles.pro b/src/plugins/opensles/opensles.pro
index 53c5a120b..aa8e05444 100644
--- a/src/plugins/opensles/opensles.pro
+++ b/src/plugins/opensles/opensles.pro
@@ -1,5 +1,5 @@
TARGET = qtaudio_opensles
-QT += multimedia-private
+QT += multimedia-private core-private
PLUGIN_TYPE = audio
PLUGIN_CLASS_NAME = QOpenSLESPlugin