Package org.javacord.api.audio
Interface DownloadableAudioSource
-
- All Superinterfaces:
AudioSource,AudioSourceAttachableListenerManager,Specializable<AudioSource>
public interface DownloadableAudioSource extends AudioSource
A downloadable audio source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<? extends DownloadableAudioSource>download()Downloads the audio source.booleanisFullyDownloaded()Checks if the audio source is fully downloaded.-
Methods inherited from interface org.javacord.api.audio.AudioSource
addTransformer, asBufferableAudioSource, asDownloadableAudioSource, asPauseableAudioSource, asSeekableAudioSource, copy, getApi, getNextFrame, getTransformers, hasFinished, hasNextFrame, isMuted, mute, removeTransformer, removeTransformers, setMuted, unmute
-
Methods inherited from interface org.javacord.api.listener.audio.AudioSourceAttachableListenerManager
addAudioSourceAttachableListener, addAudioSourceFinishedListener, getAudioSourceAttachableListeners, getAudioSourceFinishedListeners, removeAudioSourceAttachableListener, removeListener
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
download
CompletableFuture<? extends DownloadableAudioSource> download()
Downloads the audio source.Allows you to fully download the audio source before queuing it.
- Returns:
- A future with this audio source. Finishes when the download is completed.
-
isFullyDownloaded
boolean isFullyDownloaded()
Checks if the audio source is fully downloaded.- Returns:
- Whether the audio source is fully downloaded or not.
-
-