mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
nmute if volume 0
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1283 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: b1c093119b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-03-10 (Thu, 10 Mar 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3667,6 +3667,8 @@ void CNeutrinoApp::saveEpg()
|
||||
|
||||
void CNeutrinoApp::AudioMute( int newValue, bool isEvent )
|
||||
{
|
||||
if(g_settings.current_volume == 0)
|
||||
return;
|
||||
//printf("MUTE: val %d current %d event %d\n", newValue, current_muted, isEvent);
|
||||
int dx = 0;
|
||||
int dy = 0;
|
||||
@@ -3785,8 +3787,11 @@ printf("CNeutrinoApp::setVolume dx %d dy %d\n", dx, dy);
|
||||
else if (msg == CRCInput::RC_minus || msg == CRCInput::RC_left) { //FIXME
|
||||
if (g_settings.current_volume > g_settings.current_volume_step)
|
||||
g_settings.current_volume -= g_settings.current_volume_step;
|
||||
else
|
||||
else{
|
||||
g_settings.current_volume = 1;
|
||||
AudioMute( true, true);
|
||||
g_settings.current_volume = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
g_RCInput->postMsg(msg, data);
|
||||
|
Reference in New Issue
Block a user