Пример #1
0
 def on_Ok(self, param):
     self.dlg.response(Gtk.ResponseType.OK)
     aCfg = DRCConfig()
     aCfg.MicCalibrationFile = self.filechooserbuttonMicCalFile.\
         get_filename()
     aCfg.save()
     self.dlg.set_visible(False)
Пример #2
0
 def on_Ok(self, param):
     self.dlg.response(Gtk.ResponseType.OK)
     aCfg = DRCConfig()
     aCfg.MicCalibrationFile = self.filechooserbuttonMicCalFile.\
         get_filename()
     aCfg.save()
     self.dlg.set_visible(False)
Пример #3
0
 def saveSettings(self):
     aCfg = DRCConfig()
     aCfg.filterFile = self.filechooserbtn.get_filename()
     aCfg.recordGain = self.sweep_level
     aCfg.sweepDuration = int(self.entrySweepDuration.get_text())
     aCfg.FIRFilterMode = self.comboboxFIRFilterMode.get_active()
     aCfg.playHardwareIndex = self.alsaPlayHardwareCombo.get_active()
     aCfg.recHardwareIndex = self.alsaRecHardwareCombo.get_active()
     aCfg.recHardwareChannelIndex = self.comboInputChanel.get_active()
     fileExt = os.path.splitext(aCfg.filterFile)[-1]
     print(("ext = " + fileExt))
     if fileExt != ".wav":
         if self.channelSelDlg.run() == Gtk.ResponseType.OK:
             aCfg.numFilterChanels = self.channelSelDlg.getNumChannels()
     aCfg.save()
Пример #4
0
 def saveSettings(self):
     aCfg = DRCConfig()
     aCfg.filterFile = self.filechooserbtn.get_filename()
     aCfg.recordGain = self.sweep_level
     aCfg.sweepDuration = int(self.entrySweepDuration.get_text())
     aCfg.FIRFilterMode = self.comboboxFIRFilterMode.get_active()
     aCfg.playHardwareIndex = self.alsaPlayHardwareCombo.get_active()
     aCfg.recHardwareIndex = self.alsaRecHardwareCombo.get_active()
     aCfg.recHardwareChannelIndex = self.comboInputChanel.get_active()
     fileExt = os.path.splitext(aCfg.filterFile)[-1]
     print(("ext = " + fileExt))
     if fileExt != ".wav":
         if self.channelSelDlg.run() == Gtk.ResponseType.OK:
             aCfg.numFilterChanels = self.channelSelDlg.getNumChannels()
     aCfg.save()