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

Revision 459, 3.1 kB (checked in by ppalmers, 16 years ago)

- Add basic OSC mixer control for Phase88

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", ["set", "selector", 10, 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", ["set", "selector", 6, 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", ["set", "selector", 7, 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", ["set", "selector", 9, 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", ["set", "selector", 8, a0]).sendlocal(17820)
49 }
50
51
52 void Phase88Control::setVolume12( int )
53 {
54     vol = -a0
55     print "setting volume for 1/2 to %d" % vol
56     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 2 , 0, vol]).sendlocal(17820)
57 }
58
59
60 void Phase88Control::setVolume34( int )
61 {
62     vol = -a0
63     print "setting volume for 3/4 to %d" % vol
64     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 3 , 0, vol]).sendlocal(17820)
65 }
66
67
68 void Phase88Control::setVolume56( int )
69 {
70     vol = -a0
71     print "setting volume for 5/6 to %d" % vol
72     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 4 , 0, vol]).sendlocal(17820)
73
74 }
75
76 void Phase88Control::setVolume78( int )
77 {
78     vol = -a0
79     print "setting volume for 7/8 to %d" % vol
80     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 5 , 0, vol]).sendlocal(17820)
81 }
82
83 void Phase88Control::setVolumeSPDIF( int )
84 {
85     vol = -a0
86     print "setting volume for S/PDIF to %d" % vol
87     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 6 , 0, vol]).sendlocal(17820)   
88 }
89
90 void Phase88Control::setVolumeWavePlay( int )
91 {
92     vol = -a0
93     print "setting volume for WavePlay to %d" % vol
94     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 1 , 0, vol]).sendlocal(17820)
95 }
96
97 void Phase88Control::setVolumeMaster( int )
98 {
99     vol = -a0
100     print "setting master volume to %d" % vol
101     osc.Message("/devicemanager/dev0/GenericMixer", ["set", "volume", 7 , 0, vol]).sendlocal(17820)   
102 }
Note: See TracBrowser for help on using the browser.