Changeset View
Changeset View
Standalone View
Standalone View
src/sink.h
Show All 40 Lines | 34 | public: | |||
---|---|---|---|---|---|
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 Q_SLOTS: | 47 | public Q_SLOTS: | ||
48 | void testChannel(const QString &name); | 48 | void testChannel(const QString &name); | ||
49 | | ||||
50 | private: | | |||
51 | pa_channel_position_t channelNameToPosition(const QString &name); | | |||
52 | QString positionToChannelName(pa_channel_position_t position); | | |||
53 | QString positionAsString(pa_channel_position_t pos); | | |||
54 | | ||||
55 | }; | 49 | }; | ||
56 | 50 | | |||
57 | } // QPulseAudio | 51 | } // QPulseAudio | ||
58 | 52 | | |||
59 | #endif // SINK_H | 53 | #endif // SINK_H |