kmixer: ALSA lacks cojones for mute

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-03-06 14:54:24 +02:00
parent d7895b19e5
commit 47c549a132
2 changed files with 0 additions and 18 deletions

View file

@ -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;

View file

@ -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: