Package net.dv8tion.jda.api.audio
Class AudioNatives
java.lang.Object
net.dv8tion.jda.api.audio.AudioNatives
Controller used by JDA to ensure the native
binaries for opus en-/decoding are available.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks whether the opus binary was loaded, if not it will be initialized here.static boolean
Whether the opus library is loaded or not.static boolean
Whether this class was already initialized or not.
-
Method Details
-
isAudioSupported
public static boolean isAudioSupported()Whether the opus library is loaded or not.
This is initialized by the first call toensureOpus()
.- 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.
-