import { ITree } from '../../Bulldog'; import { Processor } from '../../Processor'; import { Process } from '../Process'; export interface IMp3Options { /** * The bitrate to encode all mp3's. */ bitrate?: number; /** * The number of channels to have in encoded mp3. */ channels?: number; /** * The frequency of the encoded mp3. (48000 is good as it stops that horrible occasional cracking effect on ios.) */ frequency?: number; /** * If the audio already exists as an mp3, then it will be copied over unless this is set to true. */ recompress?: boolean; } export interface IOggOptions { /** * The number of channels to have in encoded ogg. */ channels?: number; /** * If the audio already exists as an obb, then it will be copied over unless this is set to true. */ recompress?: boolean; /** * The bitrate to encode all ogg's. */ bitrate?: number; /** * The frequency of the encoded ogg. */ frequency?: number; } /** * options for creating audio assets. */ export interface IAudioOptions { /** * Either boolean to use default settings or a settings object for mp3's. */ mp3?: IMp3Options | boolean; /** * Either boolean to use default settings or a settings object for ogg's.S */ ogg?: IOggOptions | boolean; } export declare class Audio extends Process { useMp3: boolean; useOgg: boolean; mp3Opts: IMp3Options; oggOpts: IOggOptions; /** * @param options - options for creating audio assets. */ constructor(options?: IAudioOptions); /** * Checks if the trees path extension is an audio file. 'wav', 'mp3' or 'ogg'. * @override * @returns If tree path is an audio file */ test(tree: ITree): boolean; /** * Converts file to be an mp3 and ogg depending on settings. * @override */ transform(tree: ITree, processor: Processor): Promise; } //# sourceMappingURL=Audio.d.ts.map