summaryrefslogtreecommitdiffstats
path: root/tests/auto/qaudioformat
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-01-06 00:16:02 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-01-06 00:16:02 (GMT)
commitf124538ef4840c3d24b4c7e9e7221adb52bdee2c (patch)
tree22e96b25c3780fb849d4f833ef1e17331128dc36 /tests/auto/qaudioformat
parenta4550c49e982aa0218ab7097b814678505f8482c (diff)
downloadQt-f124538ef4840c3d24b4c7e9e7221adb52bdee2c.zip
Qt-f124538ef4840c3d24b4c7e9e7221adb52bdee2c.tar.gz
Qt-f124538ef4840c3d24b4c7e9e7221adb52bdee2c.tar.bz2
Added setChannelCount() to QAudioFormat.
Added setChannelCount() and updated docs/examples/tests to use it instead of setChannels(). Reviewed-by:Justin McPherson
Diffstat (limited to 'tests/auto/qaudioformat')
-rw-r--r--tests/auto/qaudioformat/tst_qaudioformat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qaudioformat/tst_qaudioformat.cpp b/tests/auto/qaudioformat/tst_qaudioformat.cpp
index 0778a8e..2742dd7 100644
--- a/tests/auto/qaudioformat/tst_qaudioformat.cpp
+++ b/tests/auto/qaudioformat/tst_qaudioformat.cpp
@@ -78,7 +78,7 @@ void tst_QAudioFormat::checkNull()
QVERIFY(!audioFormat1.isValid());
audioFormat0.setFrequency(44100);
- audioFormat0.setChannels(2);
+ audioFormat0.setChannelCount(2);
audioFormat0.setSampleSize(16);
audioFormat0.setCodec("audio/pcm");
audioFormat0.setSampleType(QAudioFormat::SignedInt);
@@ -95,7 +95,7 @@ void tst_QAudioFormat::checkFrequency()
void tst_QAudioFormat::checkChannels()
{
QAudioFormat audioFormat;
- audioFormat.setChannels(2);
+ audioFormat.setChannelCount(2);
QVERIFY(audioFormat.channels() == 2);
}
@@ -138,14 +138,14 @@ void tst_QAudioFormat::checkEquality()
// on filled formats
audioFormat0.setFrequency(8000);
- audioFormat0.setChannels(1);
+ audioFormat0.setChannelCount(1);
audioFormat0.setSampleSize(8);
audioFormat0.setCodec("audio/pcm");
audioFormat0.setByteOrder(QAudioFormat::LittleEndian);
audioFormat0.setSampleType(QAudioFormat::UnSignedInt);
audioFormat1.setFrequency(8000);
- audioFormat1.setChannels(1);
+ audioFormat1.setChannelCount(1);
audioFormat1.setSampleSize(8);
audioFormat1.setCodec("audio/pcm");
audioFormat1.setByteOrder(QAudioFormat::LittleEndian);
@@ -165,7 +165,7 @@ void tst_QAudioFormat::checkAssignment()
QAudioFormat audioFormat1;
audioFormat0.setFrequency(8000);
- audioFormat0.setChannels(1);
+ audioFormat0.setChannelCount(1);
audioFormat0.setSampleSize(8);
audioFormat0.setCodec("audio/pcm");
audioFormat0.setByteOrder(QAudioFormat::LittleEndian);