Lines Matching refs:cm
133 def get_balance(this, cm): argument
134 return this._get_balance(byref(this), byref(cm))
136 def get_fade(this, cm): argument
137 return this._get_fade(byref(this), byref(cm))
139 def set_balance(this, cm, f): argument
140 return this._set_balance(byref(this), byref(cm), f)
142 def set_fade(this, cm, f): argument
143 return this._set_fade(byref(this), byref(cm), f)
151 cm = ChannelMap() variable
154 cm.parse(sys.argv[1])
156 cm.parse("surround-51")
159 v.channels = cm.channels
161 for i in range(cm.channels):
164 title = cm.to_pretty_name()
166 title = cm.snprint()
180 for i in range(cm.channels):
187 balance_scale.set_value(v.get_balance(cm))
190 fade_scale.set_value(v.get_fade(cm))
192 for i in range(cm.channels):
198 v.set_fade(cm, fade_scale.get_value())
202 v.set_balance(cm, balance_scale.get_value())
213 for i in range(cm.channels):
214 channel_labels[i] = gtk.Label(cm.position_to_pretty_string(cm.map[i]))
263 for i in range(cm.channels):
271 if not cm.can_balance():
275 if not cm.can_fade():