diff options
author | Artem Dyomin <artem.dyomin@qt.io> | 2023-05-30 11:54:03 +0200 |
---|---|---|
committer | Artem Dyomin <artem.dyomin@qt.io> | 2023-05-30 18:34:20 +0000 |
commit | 74ce8e208fd098cacdd044d4688607fdea82cb42 (patch) | |
tree | de994d6deb1c16f3ebcd9415cfb1ee6279c38f67 /src/multimedia/audio | |
parent | f93fa5ab5196aa5135bd404d15bf5884546a6feb (diff) |
Fix inaccuracy in QAudioSink documentation
Pick-to: 6.5
Change-Id: I4ae1304615bf8ec55fbe5f41dc280cbc83f1185e
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/multimedia/audio')
-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: |