Changeset 39407
- Timestamp:
- 12/03/16 17:16:07 (6 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/audiotrack.h
r39278 r39407 24 24 struct skin* audiotrack = getscreen("audiotrack"); 25 25 struct skin* listbox = getscreennode(audiotrack, "listbox"); 26 struct skin* b4 = getscreennode(audiotrack, "b4"); 26 27 struct skin* tmp = NULL; 27 28 struct audiotrack* node = NULL; … … 34 35 m_lock(&status.audiotrackmutex, 7); 35 36 node = status.aktservice->channel->audiotrack; 36 if(getconfigint("downmixinaudio", NULL) == 1) 37 { 38 tmp = addlistbox(audiotrack, listbox, tmp, 1); 39 if(tmp != NULL) 40 { 41 if(status.downmix == 1) 42 changetext(tmp, _("DOWNMIX OFF")); 43 else 44 changetext(tmp, _("DOWNMIX ON")); 45 tmp->type = CHOICEBOX; 46 tmp->del = 1; 47 tmp->handle = (char*)node; 48 changeinput(tmp, ""); 49 } 50 } 37 51 38 while(node != NULL) 52 39 { … … 66 53 else 67 54 changeinput(tmp, ""); 68 if(getconfigint("downmixinaudio", NULL) == 0)69 if(treffer == 0) listbox->aktline++;70 55 } 71 56 node = node->next; … … 75 60 76 61 if(treffer == 0) listbox->aktline = 1; 62 63 if(status.downmix == 1) 64 changetext(b4, "passthrough"); 65 else 66 changetext(b4, getconfig("av_ac3mode", NULL)); 77 67 78 68 drawscreen(audiotrack, 0, 0); … … 101 91 break; 102 92 } 93 if(rcret == getrcconfigint("rcblue", NULL)) 94 { 95 char* ac3dev = NULL; 96 ac3dev = getconfig("ac3dev", NULL); 97 int ret = 0; 98 if(ac3dev != NULL) 99 { 100 if(status.downmix == 1) 101 { 102 ret = writesys(ac3dev, "passthrough", 0); 103 if(ret == 0) 104 status.downmix = 0; 105 else 106 printf("ERROR: set AC3_mode to passthrough\n"); 107 } 108 else 109 { 110 ret = writesys(ac3dev, getconfig("av_ac3mode", NULL), 0); 111 if(ret == 0) 112 status.downmix = 1; 113 else 114 printf("ERROR: set AC3_mode to %s\n", getconfig("av_ac3mode", NULL)); 115 } 116 } 117 break; 118 } 103 119 } 104 120 -
titan/titan/global.h
r39281 r39407 3905 3905 ret = writesys(ac3dev, value, 0); 3906 3906 if(ret == 0) addconfig("av_ac3mode", value); 3907 if(ostrcmp(value, "passthrough") == 0) 3908 status.downmix = 0; 3909 else 3910 status.downmix = 1; 3907 3911 return ret; 3908 3912 }
Note: See TracChangeset
for help on using the changeset viewer.