Example #1
0
    def __init__(self, path, interface="org.PulseAudio.Core1.Stream"):
        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("DeviceUpdated",
                                          self.device_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("SampleRateUpdated",
                                          self.sample_rate_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("VolumeUpdated",
                                          self.volume_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("MuteUpdated",
                                          self.mute_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("PropertyListUpdated",
                                          self.property_list_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("StreamEvent",
                                          self.stream_event_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None,
                                          arg1=None)
    def __init__(self, path, interface="org.PulseAudio.Core1.Sample"):
        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("PropertyListUpdated",
                                          self.property_list_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)
    def __init__(self, path = "/org/pulseaudio/stream_restore1", interface = "org.PulseAudio.Ext.StreamRestore1"):
        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("NewEntry", self.new_entry_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("EntryRemoved", self.entry_removed_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)
    def __init__(self, path ,interface = "org.PulseAudio.Core1.Client"):
        BusBase.__init__(self, path, interface)
        
        self.dbus_proxy.connect_to_signal("PropertyListUpdated", self.property_list_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("ClientEvent", self.client_event_cb, dbus_interface = 
                                          self.object_interface, arg0 = None, arg1 = None)
    def __init__(self, path , interface = "org.PulseAudio.Ext.StreamRestore1.RestoreEntry"):

        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("DeviceUpdated", self.device_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("MuteUpdated", self.mute_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("VolumeUpdated", self.volume_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)
Example #6
0
    def __init__(self,
                 path="/org/pulseaudio/stream_restore1",
                 interface="org.PulseAudio.Ext.StreamRestore1"):
        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("NewEntry",
                                          self.new_entry_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("EntryRemoved",
                                          self.entry_removed_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)
    def __init__(self, path, interface = "org.PulseAudio.Core1.Card"):
        BusBase.__init__(self, path, interface)

        self.bus.add_signal_receiver(self.active_profile_updated_cb, signal_name = "ActiveProfileUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.new_profile_cb, signal_name = "NewProfile", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.property_list_updated_cb, signal_name = "PropertyListUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.profile_removed_cb, signal_name = "ProfileRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
Example #8
0
    def __init__(self, path, interface = "org.PulseAudio.Core1.Device"):
        BusBase.__init__(self, path, interface)

        self.bus.add_signal_receiver(self.volume_updated_cb, signal_name = "VolumeUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.mute_updated_cb, signal_name = "MuteUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.state_updated_cb, signal_name = "StateUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.active_port_updated_cb, signal_name = "ActivePortUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.property_list_updated_cb, signal_name = "PropertyListUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)
    def __init__(self, path ,interface = "org.PulseAudio.Core1.Stream"):
        BusBase.__init__(self, path, interface)
                
        self.dbus_proxy.connect_to_signal("DeviceUpdated", self.device_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("SampleRateUpdated", self.sample_rate_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("VolumeUpdated", self.volume_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("MuteUpdated", self.mute_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("PropertyListUpdated", self.property_list_updated_cb, dbus_interface = 
                                          self.object_interface, arg0 = None)

        self.dbus_proxy.connect_to_signal("StreamEvent", self.stream_event_cb, dbus_interface = 
                                          self.object_interface, arg0 = None, arg1 = None)
Example #10
0
    def __init__(self,
                 path,
                 interface="org.PulseAudio.Ext.StreamRestore1.RestoreEntry"):

        BusBase.__init__(self, path, interface)

        self.dbus_proxy.connect_to_signal("DeviceUpdated",
                                          self.device_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("MuteUpdated",
                                          self.mute_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)

        self.dbus_proxy.connect_to_signal("VolumeUpdated",
                                          self.volume_updated_cb,
                                          dbus_interface=self.object_interface,
                                          arg0=None)
    def __init__(self, path, interface="org.PulseAudio.Core1.Card"):
        BusBase.__init__(self, path, interface)

        self.bus.add_signal_receiver(self.active_profile_updated_cb,
                                     signal_name="ActiveProfileUpdated",
                                     dbus_interface=self.object_interface,
                                     path=self.object_path)

        self.bus.add_signal_receiver(self.new_profile_cb,
                                     signal_name="NewProfile",
                                     dbus_interface=self.object_interface,
                                     path=self.object_path)

        self.bus.add_signal_receiver(self.property_list_updated_cb,
                                     signal_name="PropertyListUpdated",
                                     dbus_interface=self.object_interface,
                                     path=self.object_path)

        self.bus.add_signal_receiver(self.profile_removed_cb,
                                     signal_name="ProfileRemoved",
                                     dbus_interface=self.object_interface,
                                     path=self.object_path)
Example #12
0
 def __init__(self,
              path="/org/pulseaudio/core1/memstats",
              interface="org.PulseAudio.Core1.Memstats"):
     BusBase.__init__(self, path, interface)
Example #13
0
 def __init__(self, path, interface = "org.PulseAudio.Core1.DevicePort"):
     BusBase.__init__(self, path, interface)
 def __init__(self, path = "/org/pulseaudio/core1/memstats", interface = "org.PulseAudio.Core1.Memstats"):
     BusBase.__init__(self, path, interface)
 def __init__(self, path, interface = "org.PulseAudio.Core1.CardProfile"):
     BusBase.__init__(self, path, interface)
 def __init__(self, path, interface="org.PulseAudio.Core1.CardProfile"):
     BusBase.__init__(self, path, interface)
    def __init__(self, path = "/org/pulseaudio/core1", interface = "org.PulseAudio.Core1"):
        BusBase.__init__(self, path, interface)

        self.listen_for_signal("", dbus.Array([], signature = 'o'))

        self.bus.add_signal_receiver(self.new_card_cb, signal_name = "NewCard", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.card_removed_cb, signal_name = "CardRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_sink_cb, signal_name = "NewSink", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.sink_removed_cb, signal_name = "SinkRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.fallback_sink_updated_cb, signal_name = "FallbackSinkUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.fallback_sink_unset_cb, signal_name = "FallbackSinkUnset", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_source_cb, signal_name = "NewSource", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.source_removed_cb, signal_name = "SourceRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.fallback_source_udpated_cb, signal_name = "FallbackSourceUpdated", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.fallback_source_unset_cb, signal_name = "FallbackSourceUnset", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_playback_stream_cb, signal_name = "NewPlaybackStream", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.playback_stream_removed_cb, signal_name = "PlaybackStreamRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_record_stream_cb, signal_name = "NewRecordStream", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.record_stream_removed_cb, signal_name = "RecordStreamRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_sample_cb, signal_name = "NewSample", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.sample_removed_cb, signal_name = "SampleRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_module_cb, signal_name = "NewModule", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.module_removed_cb, signal_name = "ModuleRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_client_cb, signal_name = "NewClient", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.client_removed_cb, signal_name = "ClientRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)
        
        self.bus.add_signal_receiver(self.new_extension_cb, signal_name = "NewExtension", dbus_interface = 
                                     self.object_interface, path = self.object_path)

        self.bus.add_signal_receiver(self.extension_removed_cb, signal_name = "ExtensionRemoved", dbus_interface = 
                                     self.object_interface, path = self.object_path)