mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Merge pull request #4667: FEAT(client): Added DBus calls to toggle mute and deaf state
Just calling the toggle function is enough to cause the state to invert.
This commit is contained in:
commit
391ea23d0f
@ -109,6 +109,14 @@ unsigned int MumbleDBus::getTransmitMode() {
|
||||
return g.s.atTransmit;
|
||||
}
|
||||
|
||||
void MumbleDBus::toggleSelfMuted() {
|
||||
g.mw->qaAudioMute->trigger();
|
||||
}
|
||||
|
||||
void MumbleDBus::toggleSelfDeaf() {
|
||||
g.mw->qaAudioDeaf->trigger();
|
||||
}
|
||||
|
||||
void MumbleDBus::setSelfMuted(bool mute) {
|
||||
g.mw->qaAudioMute->setChecked(!mute);
|
||||
g.mw->qaAudioMute->trigger();
|
||||
|
||||
@ -35,6 +35,8 @@ public slots:
|
||||
/// @return The current transmit mode (0 = continous, 1 = voice activity, 2 = push-to-talk)
|
||||
unsigned int getTransmitMode();
|
||||
|
||||
void toggleSelfMuted();
|
||||
void toggleSelfDeaf();
|
||||
void setSelfMuted(bool mute);
|
||||
void setSelfDeaf(bool deafen);
|
||||
bool isSelfMuted();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user