summaryrefslogtreecommitdiffstats
path: root/src/PulseAudioQt/sourceoutput.h
diff options
context:
space:
mode:
authorSimon Rettberg2022-08-18 20:27:25 +0200
committerSimon Rettberg2022-08-18 20:27:25 +0200
commitc48cebd620d3f5330c104d85ac32f0aaffadaa14 (patch)
tree8fc74d8aa05fcdc75bfcdf93fdc89c0f071692eb /src/PulseAudioQt/sourceoutput.h
parentWhen changing default output of card, also set default sink (diff)
downloadpavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.gz
pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.xz
pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.zip
Replace everything with new "slxmix" (work in progress)
Diffstat (limited to 'src/PulseAudioQt/sourceoutput.h')
-rw-r--r--src/PulseAudioQt/sourceoutput.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/PulseAudioQt/sourceoutput.h b/src/PulseAudioQt/sourceoutput.h
new file mode 100644
index 0000000..758f80a
--- /dev/null
+++ b/src/PulseAudioQt/sourceoutput.h
@@ -0,0 +1,41 @@
+/*
+ SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
+
+ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
+*/
+
+#ifndef SOURCEOUTPUT_H
+#define SOURCEOUTPUT_H
+
+#include "stream.h"
+
+struct pa_source_output_info;
+
+namespace PulseAudioQt
+{
+/**
+ * A SourceOutput Stream.
+ */
+class PULSEAUDIOQT_EXPORT SourceOutput : public Stream
+{
+ Q_OBJECT
+
+public:
+ ~SourceOutput();
+
+ void setVolume(qint64 volume) override;
+ void setMuted(bool muted) override;
+ void setChannelVolume(int channel, qint64 volume) override;
+ void setDeviceIndex(quint32 deviceIndex) override;
+ void setChannelVolumes(const QVector<qint64> &channelVolumes) override;
+
+private:
+ explicit SourceOutput(QObject *parent);
+
+ class SourceOutputPrivate *const d;
+ friend class MapBase<SourceOutput, pa_source_output_info>;
+};
+
+} // PulseAudioQt
+
+#endif // SOURCEOUTPUT_H