getSourceById

abstract fun getSourceById(@NotNull sourceId: @NotNull UUID): Optional<T>

Gets an audio source by its unique identifier.

Return

An optional containing the audio source if found, or an empty optional if not found.

Parameters

sourceId

The unique identifier of the audio source.