Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioOpus

Hierarchy

  • AudioOpus

Index

Constructors

constructor

  • Parameters

    • sampleRate: number
    • channels: number
    • Default value options: AudioOpusOptions = {}

    Returns AudioOpus

Properties

application

application: number = 0

channels

channels: number = 0

opus

opus: any

sampleRate

sampleRate: number = 0

use

use: string = ""

Accessors

enabled

  • get enabled(): boolean
  • Returns boolean

module

  • get module(): any
  • Returns any

Methods

decode

  • decode(buf: Buffer, frameDuration?: number): Buffer
  • Parameters

    • buf: Buffer
    • Default value frameDuration: number = 20

    Returns Buffer

delete

  • Returns AudioOpus

encode

  • encode(buf: Buffer, frameDuration?: number): Buffer
  • Parameters

    • buf: Buffer
    • Default value frameDuration: number = 20

    Returns Buffer

recreate

  • Returns AudioOpus

setApplication

  • Parameters

    • value: number

    Returns AudioOpus

setBitrate

  • Parameters

    • bitrate: number

    Returns AudioOpus

setCTL

  • setCTL(flag: number, value: number): AudioOpus
  • Parameters

    • flag: number
    • value: number

    Returns AudioOpus

setChannels

  • Parameters

    • value: number

    Returns AudioOpus

setFEC

  • Parameters

    • enabled: boolean

    Returns AudioOpus

setModule

  • setModule(value?: undefined | string): AudioOpus
  • Parameters

    • Optional value: undefined | string

    Returns AudioOpus

setPLP

  • Parameters

    • percentage: number

    Returns AudioOpus

setSampleRate

  • Parameters

    • value: number

    Returns AudioOpus

Generated using TypeDoc