vlc.AudioSetupCb

class vlc.AudioSetupCb

Bases: ctypes.c_void_p

Callback prototype to setup the audio playback.

This is called when the media player needs to create a new audio output.

Parameters:
  • opaque – pointer to the data pointer passed to. libvlc_audio_set_callbacks() [IN/OUT].

  • format – 4 bytes sample format [IN/OUT].

  • rate – sample rate [IN/OUT].

  • channels – channels count [IN/OUT].

Returns:

0 on success, anything else to skip audio playback.

Initialize self. See help(type(self)) for accurate signature.