Skip to content

Commit ca04583

Browse files
authored
doc(types): Add JSDoc to decode method (#137)
Signed-off-by: Klaus Striessnig <[email protected]>
1 parent a84da82 commit ca04583

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

typings/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ declare module '@discordjs/opus' {
22
export class OpusEncoder {
33
public constructor(rate: number, channels: number);
44
public encode(buf: Buffer): Buffer;
5+
/**
6+
* Decodes the given Opus buffer to PCM signed 16-bit little-endian
7+
* @param buf Opus buffer
8+
*/
59
public decode(buf: Buffer): Buffer;
610
public applyEncoderCTL(ctl: number, value: number): void;
711
public applyDecoderCTL(ctl: number, value: number): void;

0 commit comments

Comments
 (0)