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/index.d.ts
2020-03-03 22:30:50 +02:00

41 lines
938 B
TypeScript

import { Transform } from 'stream';
import { ChildProcess } from 'child_process';
import { Duplex } from 'stream';
import { opus } from './opus';
import { vorbis } from './vorbis';
export interface FFmpegOptions {
args?: string[];
}
export interface FFmpegInfo {
command: string;
info: string;
version: string;
}
export class FFmpeg extends Duplex {
public process: ChildProcess;
constructor(options?: FFmpegOptions);
static getInfo(force?: boolean): FFmpegInfo;
}
export interface VolumeOptions {
type: 's16le' | 's16be' | 's32le' | 's32be',
volume?: number
}
export class VolumeTransformer {
public volume: number;
constructor(options: VolumeOptions);
public setVolume(volume: number): void;
public setVolumeDecibels(db: number): void;
public setVolumeLogarithmic(value: number): void;
public readonly volumeDecibels: number;
public readonly volumeLogarithmic: number;
}
export { opus, vorbis };