예제 #1
0
 def __init__(self, player):
     ElementBin.__init__(self, player, name=self.name)
     self.elements[50] = gst.element_factory_make('audioconvert')
     self.elements[60] = cf = gst.element_factory_make('capsfilter')
     cf.props.caps = gst.Caps('audio/x-raw-int, channels=1',
                              'audio/x-raw-float, channels=1')
     self.setup_elements()
예제 #2
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)
        self.rglimit = gst.element_factory_make("rglimiter")
        self.elements[50] = self.rglimit
        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[60] = self.audioconvert
        self.setup_elements()

        event.add_callback(self._on_option_set, "replaygain_option_set")
        self._on_option_set("replaygain_option_set", None,
                            "replaygain/clipping-protection")
예제 #3
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)
        self.rglimit = gst.element_factory_make("rglimiter")
        self.elements[50] = self.rglimit
        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[60] = self.audioconvert
        self.setup_elements()

        event.add_callback(self._on_option_set, "replaygain_option_set")
        self._on_option_set("replaygain_option_set", None,
                "replaygain/clipping-protection")
예제 #4
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)
        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[40] = self.audioconvert
        self.rgvol = gst.element_factory_make("rgvolume")
        self.elements[50] = self.rgvol
        self.setup_elements()

        event.add_callback(self._on_option_set, "replaygain_option_set")

        # load settings
        for x in ("album-mode", "pre-amp", "fallback-gain"):
            self._on_option_set("replaygain_option_set", None,
                                "replaygain/%s" % x)
예제 #5
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)
        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[40] = self.audioconvert
        self.rgvol = gst.element_factory_make("rgvolume")
        self.elements[50] = self.rgvol
        self.setup_elements()

        event.add_callback(self._on_option_set, "replaygain_option_set")

        # load settings
        for x in ("album-mode", "pre-amp", "fallback-gain"):
            self._on_option_set("replaygain_option_set", None,
                    "replaygain/%s"%x)
예제 #6
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)

        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[40] = self.audioconvert

        self.preamp = gst.element_factory_make("volume")
        self.elements[50] = self.preamp

        self.eq10band = gst.element_factory_make("equalizer-10bands")
        self.elements[60] = self.eq10band

        self.setup_elements()

        event.add_callback(self._on_option_set, "plugin_equalizer_option_set")

        setts = ["band%s" for n in xrange(10)] + ["pre", "enabled"]
        for setting in setts:
            self._on_option_set("plugin_equalizer_option_set", None,
                                "plugin/equalizer/%s" % setting)
예제 #7
0
    def __init__(self, player):
        ElementBin.__init__(self, player, name=self.name)

        self.audioconvert = gst.element_factory_make("audioconvert")
        self.elements[40] = self.audioconvert

        self.preamp = gst.element_factory_make("volume")
        self.elements[50] = self.preamp

        self.eq10band = gst.element_factory_make("equalizer-10bands")
        self.elements[60] = self.eq10band

        self.setup_elements()

        event.add_callback(self._on_option_set,
                "plugin_equalizer_option_set")

        setts = ["band%s" for n in xrange(10)] + ["pre", "enabled"]
        for setting in setts:
            self._on_option_set("plugin_equalizer_option_set", None,
                "plugin/equalizer/%s"%setting)
예제 #8
0
 def __init__(self, player):
     ElementBin.__init__(self, player, name=self.name)
     self.elements[50] = gst.element_factory_make('audioconvert')
     self.elements[60] = cf = gst.element_factory_make('capsfilter')
     cf.props.caps = gst.Caps('audio/x-raw-int, channels=1', 'audio/x-raw-float, channels=1')
     self.setup_elements()
예제 #9
0
 def __init__(self, player):
     ElementBin.__init__(self, player, name=self.name)
     self.elements[50] = gst.element_factory_make('audiokaraoke')
     self.setup_elements()