AudioProvider

Implementations of AudioProvider should provide proper AudioFrames representing the audio which should be transmitted to Discord.

Functions

Link copied to clipboard
abstract suspend fun provide(): AudioFrame?

Provides a single frame of audio, AudioFrame.

Link copied to clipboard

Polls AudioFrames into the frames channel at an appropriate interval. Suspends until the coroutine scope is cancelled.