mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 15:41:00 +02:00
move external volume control to internal volume/mute handler
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0853eb020a
Author: TangoCash <eric@loxat.de>
Date: 2018-10-19 (Fri, 19 Oct 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#endif
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <video.h>
|
||||
#include <driver/display.h>
|
||||
#include <gui/infoclock.h>
|
||||
#include <gui/volumebar.h>
|
||||
@@ -37,6 +38,8 @@
|
||||
|
||||
#include <driver/display.h>
|
||||
|
||||
#include <system/helpers.h>
|
||||
|
||||
CAudioMute::CAudioMute():CComponentsPicture(0, 0, NEUTRINO_ICON_MUTED)
|
||||
{
|
||||
y_old = -1;
|
||||
@@ -61,6 +64,11 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
|
||||
|
||||
CVFD::getInstance()->setMuted(newValue);
|
||||
neutrino->setCurrentMuted(newValue);
|
||||
#if HAVE_ARM_HARDWARE
|
||||
if (g_settings.hdmi_cec_volume)
|
||||
hdmi_cec::getInstance()->toggle_mute();
|
||||
else
|
||||
#endif
|
||||
g_Zapit->muteAudio(newValue);
|
||||
|
||||
if( isEvent && ( neutrino->getMode() != NeutrinoModes::mode_scart ) && ( neutrino->getMode() != NeutrinoModes::mode_pic))
|
||||
|
Reference in New Issue
Block a user