mirror of
				https://github.com/1disk/edp445.git
				synced 2024-08-14 22:47:02 +00:00 
			
		
		
		
	Changed alot of things.
This commit is contained in:
		
							parent
							
								
									a5a0523e5a
								
							
						
					
					
						commit
						3513d5390c
					
				
					 2016 changed files with 336930 additions and 9 deletions
				
			
		
							
								
								
									
										43
									
								
								node_modules/prism-media/typings/index.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								node_modules/prism-media/typings/index.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,43 @@ | |||
| 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[]; | ||||
|   shell?: boolean; | ||||
| } | ||||
| 
 | ||||
| export interface FFmpegInfo { | ||||
|   command: string; | ||||
|   info: string; | ||||
|   version: string; | ||||
|   output: 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 extends Transform { | ||||
|   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 }; | ||||
							
								
								
									
										30
									
								
								node_modules/prism-media/typings/opus.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								node_modules/prism-media/typings/opus.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| 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 {} | ||||
| } | ||||
							
								
								
									
										5
									
								
								node_modules/prism-media/typings/vorbis.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								node_modules/prism-media/typings/vorbis.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import { Transform } from 'stream'; | ||||
| 
 | ||||
| export namespace vorbis { | ||||
|   export class WebmDemuxer extends Transform {} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue