File indexing completed on 2024-04-28 16:52:56

0001 /*
0002     SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef SOURCE_H
0008 #define SOURCE_H
0009 
0010 #include "device.h"
0011 
0012 namespace QPulseAudio
0013 {
0014 class Source : public Device
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit Source(QObject *parent);
0019 
0020     void update(const pa_source_info *info);
0021     void setVolume(qint64 volume) override;
0022     void setMuted(bool muted) override;
0023     void setActivePortIndex(quint32 port_index) override;
0024     void setChannelVolume(int channel, qint64 volume) override;
0025     void setChannelVolumes(const QVector<qint64> &volumes) override;
0026 
0027     bool isDefault() const override;
0028     void setDefault(bool enable) override;
0029 
0030     void switchStreams() override;
0031 };
0032 
0033 } // QPulseAudio
0034 
0035 #endif // SOURCE_H