Interface libvlc_audio_setup_cb

All Superinterfaces:
com.sun.jna.Callback

public interface libvlc_audio_setup_cb extends com.sun.jna.Callback
Callback prototype to setup the audio playback.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.jna.Callback

    com.sun.jna.Callback.UncaughtExceptionHandler
  • Field Summary

    Fields inherited from interface com.sun.jna.Callback

    FORBIDDEN_NAMES, METHOD_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    setup(com.sun.jna.ptr.PointerByReference data, String format, com.sun.jna.ptr.IntByReference rate, com.sun.jna.ptr.IntByReference channels)
    Callback prototype to setup the audio playback.
  • Method Details

    • setup

      int setup(com.sun.jna.ptr.PointerByReference data, String format, com.sun.jna.ptr.IntByReference rate, com.sun.jna.ptr.IntByReference channels)
      Callback prototype to setup the audio playback.

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

      Parameters:
      data - pointer to the data pointer passed to libvlc_audio_set_callbacks()
      format - 4 bytes sample format
      rate - sample rate
      channels - channels count
      Returns:
      0 on success, anything else to skip audio playback