mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
kmixer: ALSA lacks cojones for mute
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d7895b19e5
commit
47c549a132
2 changed files with 0 additions and 18 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue