AudioSourceManager

interface AudioSourceManager<T : AudioSource<out Any>?>

Manages audio sources.

Parameters

<T>

The type of audio source to manage.

Functions

Link copied to clipboard
abstract fun clear()
Clears the manager, closing and removing all registered audio sources.
Link copied to clipboard
abstract fun getSourceById(@NotNull sourceId: @NotNull UUID): Optional<T>
Gets an audio source by its unique identifier.
Link copied to clipboard
abstract fun getSources(): Collection<T>
Gets a collection of all registered audio sources.