Changeset 1680

Show
Ignore:
Timestamp:
10/08/09 13:59:43 (11 years ago)
Author:
arnonym
Message:

Some older changes to the crossbarrouter. Most prominent: The VU have to be hand-activated...

And start a panning widget that allows to pan an arbitary number of sources to be panned to an arbitary number of sinks. In 2D.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py

    r1669 r1680  
    187187        btn = QtGui.QPushButton("Switch VU", self) 
    188188        btn.setCheckable(True) 
    189         btn.setChecked(True) 
     189        #btn.setChecked(True) 
    190190        self.connect(btn, QtCore.SIGNAL("toggled(bool)"), self.runVu) 
    191191        self.toplayout.addWidget(btn) 
     
    203203        self.timer.setInterval(200) 
    204204        self.connect(self.timer, QtCore.SIGNAL("timeout()"), self.updateLevels) 
    205         self.runVu(True) 
     205        #self.runVu(True) 
    206206 
    207207    def runVu(self, run=True): 
     
    214214 
    215215    def updateLevels(self): 
    216         #print "CrossbarRouter.updateLevels()" 
     216        #log.debug("CrossbarRouter.updateLevels()") 
    217217        peakvalues = self.interface.getPeakValues() 
    218         #print "Got %i peaks" % len(peakvalues
     218        #log.debug("Got %i peaks" % len(peakvalues)
    219219        for peak in peakvalues: 
    220             self.switchers[peak[0]].peakValue(peak[1]) 
     220            #log.debug("peak = [%s,%s]" % (str(peak[0]),str(peak[1]))) 
     221            if peak[0] >= 0: 
     222                self.switchers[peak[0]].peakValue(peak[1]) 
    221223 
    222224#