class_docstr: Gstreamer-based Audio Sink
  
  This encoder plays the decoded audio stream to the sound card
  
  Parameters
  ----------
  output_sink : str, optional
      Gstreamer sink element
      Default to 'autoaudiosink'
      Possible values : 'autoaudiosink', 'alsasink', 'osssink'
  
  >>> import timeside
  >>> from timeside.core import get_processor
  >>> from timeside.core.tools.test_samples import samples
  >>> wav_file = samples['sine440Hz_mono_1s.wav']
  >>> d = get_processor('file_decoder')(wav_file)
  >>> e = get_processor('live_encoder')()
  >>> (d|e).run()  # doctest: +SKIP
class_docstr_tok: ["Gstreamer-based","Audio","Sink","This","encoder","plays","the","decoded","audio","stream","to","the","sound","card","Parameters","--","--","--","--","--","output_sink",":","str",",","optional","Gstreamer","sink","element","Default","to","'autoaudiosink'","Possible","values",":","'autoaudiosink","'",",","'alsasink","'",",","'osssink'",">",">",">","import","timeside",">",">",">","from","timeside.core","import","get_processor",">",">",">","from","timeside.core.tools.test_samples","import","samples",">",">",">","wav_file","=","samples","[","'sine440Hz_mono_1s.wav","'","]",">",">",">","d","=","get_processor","(","'file_decoder","'",")","(","wav_file",")",">",">",">","e","=","get_processor","(","'live_encoder","'",")","(",")",">",">",">","(","d|e",")",".run","(",")","#","doctest",":","+SKIP"]
code: def __init__(self, output_sink="autoaudiosink"):
      super(GstEncoder, self).__init__()
      self.streaming = False
  
      self.output_sink = output_sink
  
      import threading
  
      self.end_cond = threading.Condition(threading.Lock())
  
      self.eod = False
      self.metadata = None
      self.num_samples = 0
  
file_path: TimeSide/timeside/plugins/encoder/audiosink.py
imports: from timeside.core import implements, interfacedoc
  from timeside.core.encoder import GstEncoder
  from timeside.core.api import IEncoder
label_desc: Use image node_id 1 to create a new AudioSink object from inherited base classes: GstEncoder with example: obj = AudioSink(output_sink)