Constructor
new LameEncoder(rate, channels)
Parameters:
Name | Type | Description |
---|---|---|
rate |
Number | The sample rate |
channels |
Number | The number of channels |
Methods
encode(data) → {NativeFunction.<Buffer.<Opus>>}
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>>