From 47c549a13283cb4c3183718245b274c45c4adbaf Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 6 Mar 2022 14:54:24 +0200 Subject: [PATCH] kmixer: ALSA lacks cojones for mute Signed-off-by: Ivailo Monev --- kmixer/kmixer.cpp | 12 ------------ kmixer/kmixer.h | 6 ------ 2 files changed, 18 deletions(-) diff --git a/kmixer/kmixer.cpp b/kmixer/kmixer.cpp index 76f868d8..e0e2d3e6 100644 --- a/kmixer/kmixer.cpp +++ b/kmixer/kmixer.cpp @@ -619,18 +619,6 @@ bool KALSABackend::setCaptureVolume(const KSoundChannel *channel, const int volu return false; } -bool KALSABackend::mute(const KSoundChannel *channel) const -{ - // TODO: save volume and set it to 0 - return false; -} - -bool KALSABackend::setMute(const KSoundChannel *channel, const bool mute) -{ - // TODO: restore volume - return false; -} - bool KALSABackend::isAvailable() { snd_mixer_t *alsamixer = nullptr; diff --git a/kmixer/kmixer.h b/kmixer/kmixer.h index fe94466e..cb189321 100644 --- a/kmixer/kmixer.h +++ b/kmixer/kmixer.h @@ -115,9 +115,6 @@ public: virtual int captureVolume(const KSoundChannel *channel) const = 0; virtual KVolumeRange captureRange(const KSoundChannel *channel) const = 0; virtual bool setCaptureVolume(const KSoundChannel *channel, const int volume) = 0; - - virtual bool mute(const KSoundChannel *channel) const = 0; - virtual bool setMute(const KSoundChannel *channel, const bool mute) = 0; }; class KALSABackend : public QObject, public KMixerBackend @@ -136,9 +133,6 @@ public: KVolumeRange captureRange(const KSoundChannel *channel) const final; bool setCaptureVolume(const KSoundChannel *channel, const int volume) final; - bool mute(const KSoundChannel *channel) const final; - bool setMute(const KSoundChannel *channel, const bool mute) final; - static bool isAvailable(); private: