diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-01-05 16:52:36 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-01-22 07:01:12 +0000 |
commit | 7b616ac0c4b3a3564eef87bd05524a4be7ea2842 (patch) | |
tree | 9c9dfcef848b8f636dd0c2e18710ceac1808c4a6 /src/multimedia/audio/qaudiosystem.cpp | |
parent | 4741716b2fccb11f0fab81e25d4ffc9ff1110c1e (diff) |
Use gstreamer for audio
This is a basic implementation of the audio classes using
gstreamer. The code still has bugs and needs further work,
but this is good enough for now.
With this change, we can remove the alsa/pulseaudio code
paths and start getting rid of the plugin architecture as
a whole.
Change-Id: I5469d13991071ef28d35f63aa3c15539334db15e
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/audio/qaudiosystem.cpp')
-rw-r--r-- | src/multimedia/audio/qaudiosystem.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/multimedia/audio/qaudiosystem.cpp b/src/multimedia/audio/qaudiosystem.cpp index ce6d7f656..64002fe11 100644 --- a/src/multimedia/audio/qaudiosystem.cpp +++ b/src/multimedia/audio/qaudiosystem.cpp @@ -40,7 +40,9 @@ #include <private/qtmultimediaglobal_p.h> #include "qaudiosystem_p.h" -#if QT_CONFIG(pulseaudio) +#if QT_CONFIG(gstreamer) +#include <private/qaudiointerface_gstreamer_p.h> +#elif QT_CONFIG(pulseaudio) #include <private/qaudiointerface_pulse_p.h> #elif QT_CONFIG(alsa) #include <private/qalsainterface_p.h> @@ -429,7 +431,9 @@ QAudioSystemInterface *QAudioSystemInterface::instance() { static QAudioSystemInterface *system = nullptr; if (!system) { -#if QT_CONFIG(pulseaudio) +#if QT_CONFIG(gstreamer) + system = new QGStreamerAudioInterface(); +#elif QT_CONFIG(pulseaudio) system = new QPulseAudioInterface(); #elif QT_CONFIG(alsa) system = new QAlsaInterface(); |