Package x2go :: Module pulseaudio :: Class X2goPulseAudio
[frames] | no frames]

Class X2goPulseAudio

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        X2goPulseAudio

This class controls the Pulse Audio daemon.

Instance Methods
 
__init__(self, path=None, client_instance=None, logger=None, loglevel=56)
Initialize a Pulse Audio daemon instance.
source code
 
run(self)
This method is called once the X2goPulseAudio.start() method has been called.
source code
 
stop_thread(self)
Tear down a running Pulseaudio daemon.
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from threading.Thread: daemon, ident, name

Inherited from object: __class__

Method Details

__init__(self, path=None, client_instance=None, logger=None, loglevel=56)
(Constructor)

source code 

Initialize a Pulse Audio daemon instance.

Parameters:
  • path (str) - full path to pulseaudio.exe
  • client_instance (X2goClient instance) - the calling X2goClient instance
  • logger (instance) - you can pass an X2goLogger object to the X2goClientXConfig constructor
  • loglevel (int) - if no X2goLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__

run(self)

source code 

This method is called once the X2goPulseAudio.start() method has been called. To tear down the Pulseaudio daemon call the X2goPulseAudio.stop_thread() method.

Overrides: threading.Thread.run