DeviceSource

interface DeviceSource

Represents an device audio source.

Inheritors

Properties

Link copied to clipboard
abstract val device: AudioDevice

Gets the associated AudioDevice for this source.

Functions

Link copied to clipboard
abstract fun clearBuffer()

Clears the audio buffer.

Link copied to clipboard
abstract suspend fun close()

Closes the audio source.

Link copied to clipboard

Closes the audio source asynchronously.

Link copied to clipboard
abstract fun isClosed(): Boolean

Checks if the audio source is closed.

Link copied to clipboard
abstract fun write(samples: ByteArray)

Writes audio samples to the source without applying device filters.

abstract fun write(samples: ShortArray, applyFilters: Boolean = true)

Writes audio samples to the source.