diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-01-27 14:55:49 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-01-29 08:54:15 +0000 |
commit | 604d5bec2acd84c1d4140cd41e1dafb087415958 (patch) | |
tree | bce6769344f8167c7713572bbe6d777d777bbffc /tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | |
parent | 5cf5e1e95ac7b01df4235475c2a1cdc9a4078b21 (diff) |
Remove codec property from QAudioFormat and related
We only ever supported audio/x-raw (ie. unencoded PCM). Remove the
codec properties from QAudioBuffer and QAudioDeviceInfo. Those deal
with raw unencoded data and nothing else.
Change-Id: I772d1bf624c8515b1d2f696da3f8e5bd5f0cc2f1
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp')
-rw-r--r-- | tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp index c568d163b..1f4ff9959 100644 --- a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp +++ b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp @@ -139,7 +139,6 @@ void tst_QAudioDecoderBackend::fileTest() QCOMPARE(buffer.format().sampleRate(), 44100); QCOMPARE(buffer.format().sampleSize(), 16); QCOMPARE(buffer.format().sampleType(), QAudioFormat::SignedInt); - QCOMPARE(buffer.format().codec(), QString("audio/x-raw")); QCOMPARE(buffer.byteCount(), buffer.sampleCount() * 2); // 16bit mono // The decoder should still have no format set @@ -197,7 +196,6 @@ void tst_QAudioDecoderBackend::fileTest() format.setChannelCount(2); format.setSampleSize(8); format.setSampleRate(11050); - format.setCodec("audio/x-raw"); format.setSampleType(QAudioFormat::SignedInt); d.setAudioFormat(format); @@ -481,7 +479,6 @@ void tst_QAudioDecoderBackend::deviceTest() QCOMPARE(buffer.format().sampleRate(), 44100); QCOMPARE(buffer.format().sampleSize(), 16); QCOMPARE(buffer.format().sampleType(), QAudioFormat::SignedInt); - QCOMPARE(buffer.format().codec(), QString("audio/x-raw")); QVERIFY(errorSpy.isEmpty()); @@ -532,7 +529,6 @@ void tst_QAudioDecoderBackend::deviceTest() format.setChannelCount(2); format.setSampleSize(8); format.setSampleRate(8000); - format.setCodec("audio/x-raw"); format.setSampleType(QAudioFormat::SignedInt); d.setAudioFormat(format); |