diff options
-rw-r--r-- | doc/src/snippets/audio/main.cpp | 2 | ||||
-rw-r--r-- | src/multimedia/audio/qaudioformat.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/src/snippets/audio/main.cpp b/doc/src/snippets/audio/main.cpp index 0910865..396872f 100644 --- a/doc/src/snippets/audio/main.cpp +++ b/doc/src/snippets/audio/main.cpp @@ -112,7 +112,7 @@ public slots: switch (newState) { case QAudio::StopState: if (output->error() != QAudio::NoError) { - // Do your error handlin + // Perform error handling } else { // Normal stop } diff --git a/src/multimedia/audio/qaudioformat.cpp b/src/multimedia/audio/qaudioformat.cpp index b2bbe14..eb5dde3 100644 --- a/src/multimedia/audio/qaudioformat.cpp +++ b/src/multimedia/audio/qaudioformat.cpp @@ -120,7 +120,7 @@ public: \row \o Sample size \o How much data is stored in each sample (typically 8 - or 16) + or 16 bits) \row \o Sample type \o Numerical representation of sample (typically signed integer, @@ -224,7 +224,7 @@ bool QAudioFormat::isValid() const } /*! - Sets the frequency to \a frequency. + Sets the frequency (sample rate) to \a frequency. */ void QAudioFormat::setFrequency(int frequency) @@ -233,7 +233,7 @@ void QAudioFormat::setFrequency(int frequency) } /*! - Returns the current frequency value. + Returns the current frequency (sample rate) value. */ int QAudioFormat::frequency() const @@ -242,7 +242,7 @@ int QAudioFormat::frequency() const } /*! - Sets the channels to \a channels. + Sets the number of channels to the \a channels value specified. */ void QAudioFormat::setChannels(int channels) @@ -251,7 +251,7 @@ void QAudioFormat::setChannels(int channels) } /*! - Returns the current channel value. + Returns the current number of channels. */ int QAudioFormat::channels() const @@ -260,7 +260,7 @@ int QAudioFormat::channels() const } /*! - Sets the sampleSize to \a sampleSize. + Sets the sample size to the \a sampleSize specified. */ void QAudioFormat::setSampleSize(int sampleSize) @@ -269,7 +269,7 @@ void QAudioFormat::setSampleSize(int sampleSize) } /*! - Returns the current sampleSize value. + Returns the current sample size value. */ int QAudioFormat::sampleSize() const |