OpenSL ES: Be less rigid about tearing down the output device.
authorChristian Strømme <christian.stromme@digia.com>
Wed, 10 Sep 2014 09:52:28 +0000 (11:52 +0200)
committerChristian Stromme <christian.stromme@digia.com>
Fri, 12 Sep 2014 12:04:08 +0000 (14:04 +0200)
commit65d44edd3d06674ec7a0014d7ecabc4f1d0854e1
treeeaba71e1a296132531fafbf6a38dd5a58d1a97a5
parent8d5114a63051128992291356440ecff9ab2ef6b6
OpenSL ES: Be less rigid about tearing down the output device.

We where very strict about tearing down the audio device. While this is
a good strategy to avoid unnecessary resource usage, it also causes
excessive re-allocations, e.g., when transiting from start to stop and
back again. This can increase latency, especially in case where a short
clip is re-played at a high frequency.
This change also decrease the chance of the player ending up in some
unknown state where it drops audio clips without any warning.

Task-number: QTBUG-40864
Change-Id: I1afad4af0622983f0f0c221d91cf794585d8cad2
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/opensles/qopenslesaudiooutput.cpp
src/plugins/opensles/qopenslesaudiooutput.h