reloadOutputDevice

@NotNull
abstract fun reloadOutputDevice(): @NotNull CompletableFuture<@Nullable AlContextOutputDevice>

Closes the current output device and opens a new one in the background, using the configured device name and the current ServerInfo voice format. Reloads run one at a time, in the order they were requested. The new device is set in the manager before the returned future completes. If the player disconnects while the device is opening, the device is closed and not set.

Return

A future that completes with the new device, or with null if the player disconnected, or completes exceptionally if a new device couldn't be opened.