Package flumotion :: Package component :: Package effects :: Package audioconvert :: Module audioconvert :: Class AudioconvertBin
[hide private]

Class AudioconvertBin

source code

       object --+                
                |                
       ??.GObject --+            
                    |            
           gst.Object --+        
                        |        
              gst.Element --+    
                            |    
           object --+       |    
                    |       |    
   gobject.GInterface --+   |    
                        |   |    
??.__main__.GstChildProxy --+    
                            |    
                      gst.Bin --+
                                |
                               AudioconvertBin

I am a GStreamer bin that can convert an an audio stream, changing its samplerate and the number of channels

Instance Methods [hide private]
 
__init__(self, channels=None, samplerate=None, tolerance=20000000, use_audiorate=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_getCapsString(self) source code
 
_setChannels(self, channels) source code
 
_setSamplerate(self, samplerate) source code
 
_setTolerance(self, tolerance) source code
 
do_set_property(self, property, value) source code
 
do_get_property(self, property) source code

Inherited from gst.Bin: __iter__, __repr__, __str__, add, add_many, do_add_element, do_handle_message, do_remove_element, elements, find_unconnected_pad, find_unlinked_pad, get_by_interface, get_by_name, iterate_all_by_interface, iterate_sources, recalculate_latency, recurse, remove, remove_many, sinks, sorted

Inherited from gst.Element: abort_state, add_pad, change_state, continue_state, create_all_pads, do_change_state, do_get_index, do_provide_clock, do_query, do_release_pad, do_request_new_pad, do_send_event, do_set_bus, do_set_clock, do_set_index, flags, found_tags, found_tags_for_pad, get_base_time, get_bus, get_clock, get_compatible_pad, get_compatible_pad_template, get_factory, get_index, get_pad, get_pad_template, get_pad_template_list, get_query_types, get_request_pad, get_start_time, get_state, get_static_pad, implements_interface, is_indexable, is_locked_state, link, link_filtered, link_pads, link_pads_filtered, link_pads_full, lost_state, lost_state_full, no_more_pads, pads, post_message, provide_clock, provides_clock, query, query_convert, query_duration, query_position, release_request_pad, remove_pad, request_pad, requires_clock, seek, seek_simple, send_event, set_base_time, set_bus, set_clock, set_index, set_locked_state, set_start_time, set_state, sink_pads, src_pads, sync_state_with_parent, unlink, unlink_pads

Inherited from gst.Object: debug, default_error, error, fixme, get_name, get_name_prefix, get_parent, get_path_string, has_ancestor, info, log, memdump, set_flag, set_name, set_name_prefix, set_parent, set_property, unparent, unset_flag, warning

Inherited from unreachable.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gobject_init__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, stop_emission, thaw_notify, weak_ref

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  logCategory = 'audiorate'
  RATE_CAPS = ', rate=%d'
  CHANNELS_CAPS = ', channels=%d'
  CAPS_TEMPLATE = 'audio/x-raw-int %(extra_caps)s ;audio/x-raw-f...
  __gproperties__ = {'channels':(gobject.TYPE_UINT, 'channels', ...
  __gtype__ = <GType flumotion+component+effects+audioconvert+au...
Properties [hide private]

Inherited from gst.Object: __gstrefcount__

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, channels=None, samplerate=None, tolerance=20000000, use_audiorate=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

CAPS_TEMPLATE

Value:
'audio/x-raw-int %(extra_caps)s ;audio/x-raw-float %(extra_caps)s'

__gproperties__

Value:
{'channels':(gobject.TYPE_UINT, 'channels', 'Audio channels', 1, 8, 2,\
 gobject.PARAM_READWRITE), 'samplerate':(gobject.TYPE_UINT, 'samplerat\
e', 'Audio samplerate', 1, 200000, 44100, gobject.PARAM_READWRITE), 't\
olerance':(gobject.TYPE_UINT, 'tolerance', 'Correct imperfect timestam\
ps when it exeeds the ' 'tolerance', 0, sys.maxint, DEFAULT_TOLERANCE,\
 gobject.PARAM_READWRITE)}

__gtype__

Value:
<GType flumotion+component+effects+audioconvert+audioconvert+Audioconv\
ertBin (3