LameEncoder

lame. LameEncoder

An Opus Encoder and Decoder

Constructor

new LameEncoder(rate, channels)

Source:
Parameters:
Name Type Description
rate Number

The sample rate

channels Number

The number of channels

Methods

encode(data) → {NativeFunction.<Buffer.<Opus>>}

Source:
Parameters:
Name Type Description
data Buffer.<PCM>

The input pcm data, may be null if piping from another NativeFunction

Returns:
  • A native function to be run with a Chain
Type
NativeFunction.<Buffer.<Opus>>