mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
* Various changes for reworked mute icon handling in some classes
- mute icon disabled for moviebrowser, upnpbrowser, pictureviewer - extra handling for audioplayer
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <driver/volume.h>
|
||||
#include <gui/audiomute.h>
|
||||
#include <gui/mediaplayer.h>
|
||||
#include <zapit/zapit.h>
|
||||
|
||||
|
||||
@@ -117,6 +118,11 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
volscale = NULL;
|
||||
}
|
||||
CAudioMute::getInstance()->AudioMute(false, true);
|
||||
if (mode == CNeutrinoApp::mode_audio) {
|
||||
CAudioPlayerGui *cap = CMediaPlayerMenu::getInstance()->getPlayerInstance();
|
||||
if (cap != NULL)
|
||||
cap->refreshMuteIcon();
|
||||
}
|
||||
setVolume(msg);
|
||||
return;
|
||||
}
|
||||
@@ -138,6 +144,11 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
volscale = NULL;
|
||||
}
|
||||
CAudioMute::getInstance()->AudioMute(true, true);
|
||||
if (mode == CNeutrinoApp::mode_audio) {
|
||||
CAudioPlayerGui *cap = CMediaPlayerMenu::getInstance()->getPlayerInstance();
|
||||
if (cap != NULL)
|
||||
cap->refreshMuteIcon();
|
||||
}
|
||||
setVolume(msg);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user