diff options
author | Artem Dyomin <artem.dyomin@qt.io> | 2023-05-30 11:54:03 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-30 18:57:28 +0000 |
commit | 295c1eeba18ec05730363877331825c1fe1ccbb9 (patch) | |
tree | f399dd5cff6302d7513f7ba3d72e6846fbc5038d | |
parent | 7be087ce645a62ea0c09b53e4f1465439f70d0c9 (diff) |
Fix inaccuracy in QAudioSink documentation
Change-Id: I4ae1304615bf8ec55fbe5f41dc280cbc83f1185e
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit 74ce8e208fd098cacdd044d4688607fdea82cb42)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/multimedia/audio/qaudiosink.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/multimedia/audio/qaudiosink.cpp b/src/multimedia/audio/qaudiosink.cpp index 47d522d2c..4bcf85f9c 100644 --- a/src/multimedia/audio/qaudiosink.cpp +++ b/src/multimedia/audio/qaudiosink.cpp @@ -58,8 +58,9 @@ QT_BEGIN_NAMESPACE If an error occurs, you can fetch the \l{QAudio::Error}{error type} with the error() function. Please see the QAudio::Error enum - for a description of the possible errors that are reported. When - an error is encountered, the state changes to QAudio::StoppedState. + for a description of the possible errors that are reported. When + QAudio::UnderrunError is encountered, the state changes to QAudio::IdleState, + when another error is encountered, the state changes to QAudio::StoppedState. You can check for errors by connecting to the stateChanged() signal: |