summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2022-03-04 11:35:08 +0100
committerLars Knoll <lars.knoll@qt.io>2022-04-01 09:08:17 +0200
commit59509119cad4463da88e83d0f465c35578d417ba (patch)
tree12097f9053f1f83273af54525b2b5a3738b2934b /tests
parentfdceea15e7c0c9083a07e108f72272bf6ffd62d2 (diff)
Add QAudioFormat::defaultChannelConfigForChannelCount()
This method returns a default channel configuration if we only have the number of audio channels. Use the method in the ffmpeg decoder to correctly initialize the audio converter in all cases. Change-Id: I1582ef2aea0c57e142e117beccbe390a5a55ca94 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/mockbackend/qmockaudiodecoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/unit/mockbackend/qmockaudiodecoder.h b/tests/auto/unit/mockbackend/qmockaudiodecoder.h
index b31bd29a6..abc710ac8 100644
--- a/tests/auto/unit/mockbackend/qmockaudiodecoder.h
+++ b/tests/auto/unit/mockbackend/qmockaudiodecoder.h
@@ -129,7 +129,7 @@ public:
if (mBuffers.length() > 0) {
a = mBuffers.takeFirst();
mPosition = a.startTime() / 1000;
- emit positionChanged(mPosition);
+ positionChanged(mPosition);
if (mBuffers.isEmpty())
emit bufferAvailableChanged(false);