Class AudioNatives

java.lang.Object
net.dv8tion.jda.api.audio.AudioNatives

public final class AudioNatives extends Object
Controller used by JDA to ensure the native binaries for opus en-/decoding are available.
See Also:
  • Method Details

    • isAudioSupported

      public static boolean isAudioSupported()
      Whether the opus library is loaded or not.
      This is initialized by the first call to ensureOpus().
      Returns:
      True, opus library is loaded.
    • isInitialized

      public static boolean isInitialized()
      Whether this class was already initialized or not.
      Returns:
      True, if this class was already initialized.
      See Also:
    • ensureOpus

      public static boolean ensureOpus()
      Checks whether the opus binary was loaded, if not it will be initialized here.
      This is used by JDA to check at runtime whether the opus library is available or not.
      Returns:
      True, if the library could be loaded.