diff --git a/typings/index.d.ts b/typings/index.d.ts index 25f68fd..ce52a00 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2,6 +2,10 @@ declare module '@discordjs/opus' { export class OpusEncoder { public constructor(rate: number, channels: number); public encode(buf: Buffer): Buffer; + /** + * Decodes the given Opus buffer to PCM signed 16-bit little-endian + * @param buf Opus buffer + */ public decode(buf: Buffer): Buffer; public applyEncoderCTL(ctl: number, value: number): void; public applyDecoderCTL(ctl: number, value: number): void;