Module vlc :: Class CallbackDecorators :: Class AudioPlayCb
[hide private]
[frames] | no frames]

Class AudioPlayCb

object --+        
         |        
 ??._CData --+    
             |    
 ??.PyCFuncPtr --+
                 |
                vlc.CallbackDecorators.AudioPlayCb

Callback prototype for audio playback. The LibVLC media player decodes and post-processes the audio signal asynchronously (in an internal thread). Whenever audio samples are ready to be queued to the output, this callback is invoked. The number of samples provided per invocation may depend on the file format, the audio coding algorithm, the decoder plug-in, the post-processing filters and timing. Application must not assume a certain number of samples. The exact format of audio samples is determined by libvlc_audio_set_format() or libvlc_audio_set_format_callbacks() as is the channels layout. Note that the number of samples is per channel. For instance, if the audio track sampling rate is 48000 Hz, then 1200 samples represent 25 milliseconds of audio signal - regardless of the number of audio channels.

Instance Methods [hide private]

Inherited from unreachable.PyCFuncPtr: __call__, __new__, __nonzero__, __repr__

Inherited from unreachable._CData: __ctypes_from_outparam__, __hash__, __reduce__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __init__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _argtypes_ = (<class 'ctypes.c_void_p'>, <class 'ctypes.c_void...
  _flags_ = 1
  _restype_ = None
Properties [hide private]

Inherited from unreachable.PyCFuncPtr: argtypes, errcheck, restype

Inherited from unreachable._CData: _b_base_, _b_needsfree_

Inherited from unreachable._CData (private): _objects

Inherited from object: __class__

Class Variable Details [hide private]

_argtypes_

Value:
(<class 'ctypes.c_void_p'>,
 <class 'ctypes.c_void_p'>,
 <class 'ctypes.c_uint'>,
 <class 'ctypes.c_long'>)