diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-26 15:59:27 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-02-20 16:19:21 +0100 |
commit | edaec2bf714c98d65f12c8ed9a2ffbd1603635a7 (patch) | |
tree | b902741ddf12665f1e7073f5405cc78e63f85844 /src/multimedia/playback/qmediaplayer.h | |
parent | 3709a35bd7aa2c9dcb33264846f5ce9027e5ec64 (diff) |
Rename QAudio namespace to QtAudio
With the addition of the QtVideo namespace in Qt 6.7 it becomes
obvious that the existing QAudio namespace is not named according
to the convention for namespaces in Qt.
To fix this, we can rename the QAudio namespace to QtAudio, and
declare the QAudio namespace as an alias for QtAudio. Public APIs
using a QAudio type in their signature need to be exported from a
removed_api.cpp file to maintain binary compatibility.
Two of those are a signal, which leaves one challenge: string-based
connects will have to use the QAudio namespace, in spite of the
documentation, as the signal doesn't exist with a QtAudio parameter.
Add a \note in the signals' documentation.
[ChangeLog][Qt Multimedia][Potentially Source-Incompatible Changes]
The QAudio namespace has been renamed to QtAudio, with QAudio still
being available as an alias. String based connections to
QAudioSink/Source::stateChanged need to continue to use
QAudio::State as the parameter.
Pick-to: 6.7
Change-Id: If49676ee62e048efbed68bb0e4848a5fefaea2f7
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/multimedia/playback/qmediaplayer.h')
-rw-r--r-- | src/multimedia/playback/qmediaplayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/playback/qmediaplayer.h b/src/multimedia/playback/qmediaplayer.h index 5e89e34ca..015a30f05 100644 --- a/src/multimedia/playback/qmediaplayer.h +++ b/src/multimedia/playback/qmediaplayer.h @@ -8,7 +8,7 @@ #include <QtCore/qurl.h> #include <QtMultimedia/qtmultimediaglobal.h> #include <QtMultimedia/qmediaenumdebug.h> -#include <QtMultimedia/qaudio.h> +#include <QtMultimedia/qtaudio.h> QT_BEGIN_NAMESPACE |