Skip to content

Commit

Permalink
doc(types): Add JSDoc to decode method (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Striessnig <[email protected]>
  • Loading branch information
Kirdock authored Mar 9, 2024
1 parent a84da82 commit ca04583
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca04583

Please sign in to comment.