summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/spectrum
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 /examples/multimedia/spectrum
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 'examples/multimedia/spectrum')
0 files changed, 0 insertions, 0 deletions