root/trunk/libffado/support/mixer/mixer_phase88.ui.h

Revision 462, 3.1 kB (checked in by ppalmers, 15 years ago)

- Rework the OSC space to something more usable

Line 
1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
3 **
4 ** If you want to add, delete, or rename functions or slots, use
5 ** Qt Designer to update this file, preserving your code.
6 **
7 ** You should not define a constructor or destructor in this file.
8 ** Instead, write your code in functions called init() and destroy().
9 ** These will automatically be called by the form's constructor and
10 ** destructor.
11 *****************************************************************************/
12
13
14 void Phase88Control::switchFrontState( int )
15 {
16    
17     if a0 == 0:
18         state=0
19     else :
20         state=1
21                        
22     print "switching front/back state to %d" % state
23
24     osc.Message("/devicemanager/dev0/GenericMixer/Selector/10", ["set", "value", state]).sendlocal(17820)                       
25 }
26
27 void Phase88Control::switchOutAssign( int )
28 {
29     print "switching out assign to %d" % a0
30     osc.Message("/devicemanager/dev0/GenericMixer/Selector/6", ["set", "value", a0]).sendlocal(17820)
31 }
32
33 void Phase88Control::switchWaveInAssign( int )
34 {
35     print "switching input assign to %d" % a0
36     osc.Message("/devicemanager/dev0/GenericMixer/Selector/7", ["set", "value", a0]).sendlocal(17820)
37 }
38
39 void Phase88Control::switchSyncSource( int )
40 {
41     print "switching sync source to %d" % a0
42     osc.Message("/devicemanager/dev0/GenericMixer/Selector/9", ["set", "value", a0]).sendlocal(17820)
43 }
44
45 void Phase88Control::switchExtSyncSource( int )
46 {
47     print "switching external sync source to %d" % a0
48     osc.Message("/devicemanager/dev0/GenericMixer/Selector/8", ["set", "value", a0]).sendlocal(17820)
49 }
50
51 void Phase88Control::setVolume12( int )
52 {
53     vol = -a0
54     print "setting volume for 1/2 to %d" % vol
55     osc.Message("/devicemanager/dev0/GenericMixer/Feature/2", ["set", "volume", 0, vol]).sendlocal(17820)
56 }
57
58 void Phase88Control::setVolume34( int )
59 {
60     vol = -a0
61     print "setting volume for 3/4 to %d" % vol
62     osc.Message("/devicemanager/dev0/GenericMixer/Feature/3", ["set", "volume", 0, vol]).sendlocal(17820)
63 }
64
65 void Phase88Control::setVolume56( int )
66 {
67     vol = -a0
68     print "setting volume for 5/6 to %d" % vol
69     osc.Message("/devicemanager/dev0/GenericMixer/Feature/4", ["set", "volume", 0, vol]).sendlocal(17820)
70 }
71
72 void Phase88Control::setVolume78( int )
73 {
74     vol = -a0
75     print "setting volume for 7/8 to %d" % vol
76     osc.Message("/devicemanager/dev0/GenericMixer/Feature/5", ["set", "volume", 0, vol]).sendlocal(17820)
77 }
78
79 void Phase88Control::setVolumeSPDIF( int )
80 {
81     vol = -a0
82     print "setting volume for S/PDIF to %d" % vol
83     osc.Message("/devicemanager/dev0/GenericMixer/Feature/6", ["set", "volume", 0, vol]).sendlocal(17820)   
84 }
85
86 void Phase88Control::setVolumeWavePlay( int )
87 {
88     vol = -a0
89     print "setting volume for WavePlay to %d" % vol
90     osc.Message("/devicemanager/dev0/GenericMixer/Feature/7", ["set", "volume", 0, vol]).sendlocal(17820)
91 }
92
93 void Phase88Control::setVolumeMaster( int )
94 {
95     vol = -a0
96     print "setting master volume to %d" % vol
97     osc.Message("/devicemanager/dev0/GenericMixer/Feature/1", ["set", "volume", 0, vol]).sendlocal(17820)   
98 }
Note: See TracBrowser for help on using the browser.