LoopbackSource

interface LoopbackSource

Represents a client-only direct source.

Functions

Link copied to clipboard
abstract fun close()
Closes the loopback source, releasing any associated resources.
Link copied to clipboard
@NotNull
abstract fun getSource(): @NotNull Optional<AlSource>
Gets the source group associated with this loopback source.
Link copied to clipboard
abstract fun initialize(stereo: Boolean)
Initializes the loopback source.
Link copied to clipboard
abstract fun isClosed(): Boolean
Checks if the audio source is closed or not initialized.
Link copied to clipboard
abstract fun isStereo(): Boolean
Checks if the loopback source is initialized in stereo.
Link copied to clipboard
abstract fun setVolumeEntry(@Nullable entry: @Nullable DoubleConfigEntry)
Configures the volume control for the loopback source.
Link copied to clipboard
abstract fun write(samples: Array<Short>)
Writes audio samples to the loopback source.