Skip to content

Commit

Permalink
changed: Don't allow change of volume amplification with passthrough …
Browse files Browse the repository at this point in the history
…audio
  • Loading branch information
arnova committed Oct 6, 2013
1 parent 171eba0 commit eef3f52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xbmc/video/PlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,16 @@ bool CPlayerController::OnAction(const CAction &action)
case ACTION_VOLAMP_UP:
case ACTION_VOLAMP_DOWN:
{
// Don't allow change with passthrough audio
if (g_application.m_pPlayer->IsPassthrough())
{
CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Warning,
g_localizeStrings.Get(660),
g_localizeStrings.Get(29802),
TOAST_DISPLAY_TIME, false);
return false;
}

float sliderMax = VOLUME_DRC_MAXIMUM / 100.0f;
float sliderMin = VOLUME_DRC_MINIMUM / 100.0f;

Expand Down

0 comments on commit eef3f52

Please sign in to comment.