PulseAudio Qt Bindings

source.h
1 /*
2  SPDX-FileCopyrightText: 2014-2015 Harald Sitter <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef SOURCE_H
8 #define SOURCE_H
9 
10 #include "device.h"
11 
12 struct pa_source_info;
13 
14 namespace PulseAudioQt
15 {
16 /**
17  * A PulseAudio source. This class is based on https://freedesktop.org/software/pulseaudio/doxygen/structpa__source__info.html.
18  */
19 class PULSEAUDIOQT_EXPORT Source : public Device
20 {
21  Q_OBJECT
22 
23 public:
24  ~Source();
25 
26  void setVolume(qint64 volume) override;
27  void setMuted(bool muted) override;
28  void setActivePortIndex(quint32 port_index) override;
29  void setChannelVolume(int channel, qint64 volume) override;
30  void setChannelVolumes(const QVector<qint64> &volumes) override;
31 
32  bool isDefault() const override;
33  void setDefault(bool enable) override;
34 
35 private:
36  explicit Source(QObject *parent);
37 
38  class SourcePrivate *const d;
39  friend class MapBase<Source, pa_source_info>;
40 };
41 
42 } // PulseAudioQt
43 
44 #endif // SOURCE_H
A PulseAudio device.
Definition: device.h:23
The primary namespace of PulseAudioQt.
Definition: card.cpp:16
Maps a specific index to a specific object pointer.
Definition: maps.h:67
A PulseAudio source.
Definition: source.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:09:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.