blob: 9551763ed726672c8a763a86ae6e86cd50a9c9df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
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 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<qint64> &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<Sink, pa_sink_info>;
};
} // PulseAudioQt
#endif // SINK_H
|