1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00
musix-oss/node_modules/prism-media/typings/opus.d.ts

30 lines
774 B
TypeScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
import { Transform } from 'stream';
interface OpusOptions {
frameSize: number,
channels: number,
rate: number
}
export class OpusStream extends Transform {
public encoder: any; // TODO: type opusscript/node-opus
constructor(options?: OpusOptions);
public static readonly type: 'opusscript' | 'node-opus' | '@discordjs/opus';
public setBitrate(bitrate: number): void;
public setFEC(enabled: boolean): void;
public setPLP(percentage: number): void;
}
export namespace opus {
interface OpusOptions {
frameSize: number,
channels: number,
rate: number
}
export class Encoder extends OpusStream {}
export class Decoder extends OpusStream {}
export class OggDemuxer extends Transform {}
export class WebmDemuxer extends Transform {}
}