summaryrefslogtreecommitdiff
path: root/src/multimedia/audio/qaudioformat.cpp
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-01-06 10:16:02 +1000
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-01-06 10:16:02 +1000
commitf124538ef4840c3d24b4c7e9e7221adb52bdee2c (patch)
tree22e96b25c3780fb849d4f833ef1e17331128dc36 /src/multimedia/audio/qaudioformat.cpp
parenta4550c49e982aa0218ab7097b814678505f8482c (diff)
downloadqt4-tools-f124538ef4840c3d24b4c7e9e7221adb52bdee2c.tar.gz
Added setChannelCount() to QAudioFormat.
Added setChannelCount() and updated docs/examples/tests to use it instead of setChannels(). Reviewed-by:Justin McPherson
Diffstat (limited to 'src/multimedia/audio/qaudioformat.cpp')
-rw-r--r--src/multimedia/audio/qaudioformat.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudioformat.cpp b/src/multimedia/audio/qaudioformat.cpp
index b2bbe144e9..b8e0851f5a 100644
--- a/src/multimedia/audio/qaudioformat.cpp
+++ b/src/multimedia/audio/qaudioformat.cpp
@@ -245,6 +245,15 @@ int QAudioFormat::frequency() const
Sets the channels to \a channels.
*/
+void QAudioFormat::setChannelCount(int channels)
+{
+ d->channels = channels;
+}
+
+/*!
+ \internal
+*/
+
void QAudioFormat::setChannels(int channels)
{
d->channels = channels;