summaryrefslogtreecommitdiffstats
path: root/kmix/kmixdockwidget.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-05-12 01:34:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-05-25 13:24:32 +0900
commit2251b3395ac880f0b24db47615bf21ed97ec69f3 (patch)
tree219d0543f15a1b8651b87e78c33c7ae62d5bdb60 /kmix/kmixdockwidget.h
parenta00a998b33895808e19627966f047e7c32d2556c (diff)
downloadtdemultimedia-2251b3395ac880f0b24db47615bf21ed97ec69f3.tar.gz
tdemultimedia-2251b3395ac880f0b24db47615bf21ed97ec69f3.zip
Added initial support for PulseAudio in KMix. The mixer/device channel to control
from the system tray widget is now selectable from the user and default to the main one if not specifically selected. This allows to control PulseAudio volume from KMix correctly. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmix/kmixdockwidget.h')
-rw-r--r--kmix/kmixdockwidget.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/kmix/kmixdockwidget.h b/kmix/kmixdockwidget.h
index 0899d28f..6be2b4b7 100644
--- a/kmix/kmixdockwidget.h
+++ b/kmix/kmixdockwidget.h
@@ -36,11 +36,11 @@ class MixDeviceWidget;
class Mixer;
class ViewDockAreaPopup;
class Volume;
+class DialogSelectMaster;
class KMixDockWidget : public KSystemTray {
Q_OBJECT
-
friend class KMixWindow;
public:
@@ -78,10 +78,12 @@ class KMixDockWidget : public KSystemTray {
char _oldPixmapType;
bool _volumePopup;
bool _dockIconMuting;
+ DialogSelectMaster *_dsm;
+
private slots:
void dockMute();
void selectMaster();
- void handleNewMaster(int soundcard_id, TQString& channel_id);
+ void handleNewMaster(bool defaultMaster, int soundcard_id, const TQString &channel_id);
};
#endif