Ticket #5900: mythmusic-toggle-upmix.patch

File mythmusic-toggle-upmix.patch, 1.9 KB (added by foobum@…, 12 years ago)
  • mythmusic/mythmusic/playbackbox.cpp

     
    358358            changeSpeed(true);
    359359        else if (action == "MUTE")
    360360            toggleMute();
     361        else if (action == "TOGGLEUPMIX")
     362            toggleUpmix();
    361363        else if (action == "MENU" && visualizer_status != 2)
    362364        {
    363365            menufilters = false;
     
    11751177    }
    11761178}
    11771179
     1180void PlaybackBoxMusic::toggleUpmix()
     1181{
     1182    if (gPlayer->getOutput())
     1183        gPlayer->getOutput()->ToggleUpmix();
     1184}
     1185   
     1186
    11781187void PlaybackBoxMusic::showProgressBar()
    11791188{
    11801189    if (progress_bar)
  • mythmusic/mythmusic/main.cpp

     
    378378    REG_KEY("Music", "VOLUMEDOWN", "Volume down",       "[,{,F10,Volume Down");
    379379    REG_KEY("Music", "VOLUMEUP",   "Volume up",         "],},F11,Volume Up");
    380380    REG_KEY("Music", "MUTE",       "Mute",              "|,\\,F9,Volume Mute");
     381    REG_KEY("Music", "TOGGLEUPMIX","Toggle upmixer",             "Ctrl+U");
    381382    REG_KEY("Music", "CYCLEVIS",   "Cycle visualizer mode",      "6");
    382383    REG_KEY("Music", "BLANKSCR",   "Blank screen",               "5");
    383384    REG_KEY("Music", "THMBUP",     "Increase rating",            "9");
  • mythmusic/mythmusic/playbackbox.h

     
    6969    void changeVolume(bool up_or_down);
    7070    void changeSpeed(bool up_or_down);
    7171    void toggleMute();
     72    void toggleUpmix();
    7273    void resetTimer();
    7374    void hideVolume(){showVolume(false);}
    7475    void showVolume(bool on_or_off);