buddy

node MVC discord bot
Log | Files | Refs | README

index.d.ts (938B)


      1 import { Transform } from 'stream';
      2 
      3 import { ChildProcess } from 'child_process';
      4 import { Duplex } from 'stream';
      5 
      6 import { opus } from './opus';
      7 import { vorbis } from './vorbis';
      8 
      9 export interface FFmpegOptions {
     10   args?: string[];
     11 }
     12 
     13 export interface FFmpegInfo {
     14   command: string;
     15   info: string;
     16   version: string;
     17 }
     18 
     19 export class FFmpeg extends Duplex {
     20   public process: ChildProcess;
     21   constructor(options?: FFmpegOptions);
     22   static getInfo(force?: boolean): FFmpegInfo;
     23 }
     24 
     25 export interface VolumeOptions {
     26   type: 's16le' | 's16be' | 's32le' | 's32be',
     27   volume?: number
     28 }
     29 
     30 export class VolumeTransformer {
     31   public volume: number;
     32 
     33   constructor(options: VolumeOptions);
     34   public setVolume(volume: number): void;
     35   public setVolumeDecibels(db: number): void;
     36   public setVolumeLogarithmic(value: number): void;
     37   public readonly volumeDecibels: number;
     38   public readonly volumeLogarithmic: number;
     39 }
     40 
     41 export { opus, vorbis };