diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2015-11-17 16:05:09 +0100 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2016-01-08 00:04:12 +0000 |
commit | 3bd9da9aba63b51114a3602313e51085954be194 (patch) | |
tree | 9ddf571092e5793c26e4c4009a510799db7c5fe4 /src/plugins/opensles/opensles.pro | |
parent | ddaacc147e1df96ac49d4276dc2cd623bb084bed (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.pro | 2 |
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 |