VoiceCodec

interface VoiceCodec(source)

Encodes / decodes 20 ms mono PCM16 frames.

Inheritors

Properties

Link copied to clipboard
abstract val id: Int
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val rate: Int

Functions

Link copied to clipboard
open fun conceal(): ShortArray?

Packet-loss concealment: a synthetic frame for a missing one (null = play nothing).

Link copied to clipboard
abstract fun decode(frame: ByteArray): ShortArray?
Link copied to clipboard
abstract fun encode(pcm: ShortArray): List<ByteArray>
Link copied to clipboard
open fun release()