diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2014-10-30 18:29:38 +0100 |
---|---|---|
committer | Christian Stromme <christian.stromme@digia.com> | 2014-11-04 15:09:26 +0100 |
commit | e92bcbfa4dc8ea5e78e4c1712fffc9be0104a73e (patch) | |
tree | 60093ca4a71ca655724826db6c4a1798635760af /src/plugins/opensles/qopenslesaudiooutput.h | |
parent | ad929984e3560407cd530d4420bda97e973d5e7d (diff) |
OpenSL ES: improve buffer logic
Don't use relaxed load and stores, we need to be stricter to avoid
problems with high frequency re-fills of the buffer. If we don't enforce
ordering we might end-up spending more time trying to acquire an open
slot in the buffer. Updating processes bytes is also moved off the
"OpenSL" thread.
Added some comments for improved readability.
Change-Id: Ie27965fc6bf4b8394081ae6419f4933522ada98e
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins/opensles/qopenslesaudiooutput.h')
-rw-r--r-- | src/plugins/opensles/qopenslesaudiooutput.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/opensles/qopenslesaudiooutput.h b/src/plugins/opensles/qopenslesaudiooutput.h index 200b4a3cc..f36a5bf04 100644 --- a/src/plugins/opensles/qopenslesaudiooutput.h +++ b/src/plugins/opensles/qopenslesaudiooutput.h @@ -79,6 +79,7 @@ private: friend class SLIODevicePrivate; Q_INVOKABLE void onEOSEvent(); + Q_INVOKABLE void onBytesProcessed(qint64 bytes); void bufferAvailable(quint32 count, quint32 playIndex); static void playCallback(SLPlayItf playItf, void *ctx, SLuint32 event); |