Changeset View
Changeset View
Standalone View
Standalone View
src/sink.h
Show All 38 Lines | 34 | public: | |||
---|---|---|---|---|---|
39 | void setVolume(qint64 volume) override; | 39 | void setVolume(qint64 volume) override; | ||
40 | void setMuted(bool muted) override; | 40 | void setMuted(bool muted) override; | ||
41 | void setActivePortIndex(quint32 port_index) override; | 41 | void setActivePortIndex(quint32 port_index) override; | ||
42 | void setChannelVolume(int channel, qint64 volume) override; | 42 | void setChannelVolume(int channel, qint64 volume) override; | ||
43 | 43 | | |||
44 | bool isDefault() const override; | 44 | bool isDefault() const override; | ||
45 | void setDefault(bool enable) override; | 45 | void setDefault(bool enable) override; | ||
46 | 46 | | |||
47 | public slots: | 47 | public Q_SLOTS: | ||
48 | void testChannel(const QString &name); | 48 | void testChannel(const QString &name); | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | pa_channel_position_t channelNameToPosition(const QString &name); | 51 | pa_channel_position_t channelNameToPosition(const QString &name); | ||
52 | QString positionToChannelName(pa_channel_position_t position); | 52 | QString positionToChannelName(pa_channel_position_t position); | ||
53 | QString positionAsString(pa_channel_position_t pos); | 53 | QString positionAsString(pa_channel_position_t pos); | ||
54 | 54 | | |||
55 | }; | 55 | }; | ||
56 | 56 | | |||
57 | } // QPulseAudio | 57 | } // QPulseAudio | ||
58 | 58 | | |||
59 | #endif // SINK_H | 59 | #endif // SINK_H |