Changeset 1555

Show
Ignore:
Timestamp:
05/17/09 04:11:53 (11 years ago)
Author:
ppalmers
Message:

(re #204) implement simple workaround, needs some more work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/support/mixer-qt4/mixer_saffire.py

    r1370 r1555  
    107107    def initValues(self): 
    108108        selected = self.samplerateselect.selected() 
    109         self.samplerate = int(self.samplerateselect.getEnumLabel( selected )) 
     109        label = self.samplerateselect.getEnumLabel( selected ) 
     110        try: 
     111            self.samplerate = int(label) 
     112        except: 
     113            # FIXME: this should be handled properly 
     114            self.samplerate = 44100 
    110115 
    111116        # Saffire:        0x130e010001????