Did I find the right examples for you? yes no

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/f/r/freeseer-HEAD/src/freeseer/plugins/audiomixer/multiaudio/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.input1 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 1')
            self.input2 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 2')
        except configparser.NoSectionError, configparser.NoOptionError:
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 1', self.input1)
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 2', self.input2)
    def set_input1(self, input1):
        self.input1 = input1
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input 1", input1)
        self.__enable_source1_setup(self.input1)
 

src/f/r/freeseer-3.0.1/freeseer/plugins/audiomixer/multiaudio/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.input1 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 1')
            self.input2 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 2')
        except ConfigParser.NoSectionError, ConfigParser.NoOptionError:
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 1', self.input1)
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Audio Input 2', self.input2)
    def set_input1(self, input1):
        self.input1 = input1
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input 1", input1)
        self.__enable_source1_setup(self.input1)
 

src/f/r/freeseer-HEAD/src/freeseer/plugins/audiomixer/audiopassthrough/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.input1 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input")
        except configparser.NoSectionError:
            self.input1 = self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input", self.input1)
    def set_input(self, input):
        self.input1 = input
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input", input)
        self.__enable_source_setup(self.input1)
 

src/f/r/freeseer-3.0.1/freeseer/plugins/audiomixer/audiopassthrough/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.input1 = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input")
        except ConfigParser.NoSectionError:
            self.input1 = self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input", self.input1)
    def set_input(self, input):
        self.input1 = input
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Audio Input", input)
        self.__enable_source_setup(self.input1)