/* SPDX-FileCopyrightText: 2014-2015 Harald Sitter SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef SINK_H #define SINK_H #include "device.h" struct pa_sink_info; namespace PulseAudioQt { /** * A PulseAudio sink. This class is based on https://freedesktop.org/software/pulseaudio/doxygen/structpa__sink__info.html. */ class PULSEAUDIOQT_EXPORT Sink : public Device { Q_OBJECT public: ~Sink(); void setVolume(qint64 volume) override; void setMuted(bool muted) override; void setActivePortIndex(quint32 port_index) override; void setChannelVolume(int channel, qint64 volume) override; bool isDefault() const override; void setDefault(bool enable) override; void setChannelVolumes(const QVector &channelVolumes) override; /** * Index of the monitor source for this sink. */ quint32 monitorIndex() const; Q_SIGNALS: void monitorIndexChanged(); private: explicit Sink(QObject *parent); class SinkPrivate *const d; friend class MapBase; }; } // PulseAudioQt #endif // SINK_H