Changeset 25593


Ignore:
Timestamp:
01/10/14 15:17:05 (10 years ago)
Author:
obi
Message:

fix mute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r25592 r25593  
    1313        else if(flag == 1)
    1414                vol = ostrcat(getconfig("vol_playerstop", NULL), NULL, 0, 0);
    15         else
    16                 vol = ostrcat("0", NULL, 0, 0);
    1715
    1816        cmd = ostrcat("amixer -c 1 set Analog playback '", vol, 0, 0);
     
    53295327                // disable sound
    53305328                set_player_sound(2);
    5331 
     5329                system("amixer -c 1 set HDMI mute &");
     5330                system("amixer -c 1 set Analog mute &");
     5331                system("amixer -c 1 set SPDIF mute &");
    53325332                tmpvol = getvol();
    53335333                tmpvol = tmpvol * 50 / 100;
     
    53415341                if(mutedev != NULL)
    53425342                {
    5343                         if(status.mcaktiv == 1)
    5344                                 set_player_sound(0);
    5345                         else
    5346                                 set_player_sound(1);
    5347                        
     5343                        system("amixer -c 1 set HDMI unmute &");
     5344                        system("amixer -c 1 set Analog unmute &");
     5345                        system("amixer -c 1 set SPDIF unmute &");
     5346
    53485347                        debug(100, "set %s to %d", mutedev, value);
    53495348                        //if(status.volautochangevalue != 0 && value == 0) setvol(getvol());
Note: See TracChangeset for help on using the changeset viewer.