summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio
diff options
context:
space:
mode:
authorAndreas Eliasson <andreas.eliasson@qt.io>2023-09-14 08:44:02 +0200
committerAndreas Eliasson <andreas.eliasson@qt.io>2023-09-15 04:58:00 +0000
commit17e6e04724ce279755591b2c91ac3804405223dd (patch)
tree764d69a6c9003a8510268634b0dbe2aabbe5cc61 /src/multimedia/audio
parent0b590d7f26d5590b01c208eacd7270beb416115b (diff)
Doc: Add code snippet for stopping audio output
The current docs have the same code snippet for changed audio state and for how to stop the output. The code snippet is correct for how to handle changed state, but not for how to stop the output. Fixes: QTBUG-116901 Pick-to: 6.6 6.5 6.2 Change-Id: Ibe4e6b14513b97781b85f4706aaadc2bab84b1d0 Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/multimedia/audio')
-rw-r--r--src/multimedia/audio/qaudiosink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiosink.cpp b/src/multimedia/audio/qaudiosink.cpp
index e63fa5fc2..1e311c196 100644
--- a/src/multimedia/audio/qaudiosink.cpp
+++ b/src/multimedia/audio/qaudiosink.cpp
@@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE
After the file has finished playing, we need to stop the device:
- \snippet multimedia-snippets/audio.cpp Audio output state changed
+ \snippet multimedia-snippets/audio.cpp Audio output stop
At any given time, the QAudioSink will be in one of four states:
active, suspended, stopped, or idle. These states are described