Show
Ignore:
Timestamp:
01/04/10 14:10:14 (14 years ago)
Author:
arnonym
Message:

Bring back the peaks.

And *flush* fix compilation from the commit before.
I will not commit without a succesfull build.
I will not commit without a succesfull build.
I will not commit without a succesfull build.
I will not commit without a succesfull build.
I will not commit without a succesfull build.

Files:

Legend:

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

    r1779 r1780  
    2020 
    2121from PyQt4 import QtGui, QtCore 
    22 import dbus 
     22import dbus, math 
    2323 
    2424import logging 
     
    4646        value = self.level/4096 
    4747        r = self.rect() 
    48         r.setHeight(r.height() * value
     48        r.setHeight(r.height() * math.sqrt(value)
    4949        r.moveBottom(self.rect().height()) 
    5050        p.fillRect(r, self.palette().highlight()) 
     
    9191 
    9292    def peakValue(self, value): 
    93         #self.vu.updateLevel(value) 
     93        self.vu.updateLevel(value) 
    9494        pass 
    9595 
     
    132132        self.biglayout.addLayout(self.toplayout) 
    133133 
    134         self.vubtn = QtGui.QPushButton("Switch VU", self) 
     134        self.vubtn = QtGui.QPushButton("Switch peak meters", self) 
    135135        self.vubtn.setCheckable(True) 
    136136        self.connect(self.vubtn, QtCore.SIGNAL("toggled(bool)"), self.runVu) 
     
    168168        #log.debug("CrossbarRouter.updateLevels()") 
    169169        peakvalues = self.interface.getPeakValues() 
    170         log.debug("Got %i peaks" % len(peakvalues)) 
     170        #log.debug("Got %i peaks" % len(peakvalues)) 
    171171        for peak in peakvalues: 
    172172            #log.debug("peak = [%s,%s]" % (str(peak[0]),str(peak[1])))