CollectionAudioFrameProvider

Represents an abstract audio frame provider using collection.

Inheritors

Constructors

Link copied to clipboard
constructor(voiceServer: PlasmoBaseVoiceServer, stereo: Boolean)

Functions

Link copied to clipboard

Adds an Opus encoded audio samples to the queue.

Link copied to clipboard
fun addEnd()

Adds an end of the stream marker to the queue.

Link copied to clipboard
fun addSamples(samples: ShortArray)

Adds an 48kHz 16-bit PCM audio samples to the queue.

Link copied to clipboard
fun clear()

Removes all frames.

Link copied to clipboard
override fun close()

Closes the encoder and frame provider.

Link copied to clipboard

Provides the 20ms encoded & encrypted audio frame.