UNPKG

tav-media

Version:

Cross platform media editing framework

28 lines (27 loc) 850 B
import { MediaClip } from '../clips/tav-media-clip'; import { tav } from '../tav'; /** * A audio reader used to obtain the audio frames of a media. * @category Engine */ export declare class TAVAudioReader { private ref; private static dispatcher; /** * Make a audio reader from a media clip. */ static MakeFrom(root: MediaClip, sampleRate: number, sampleCount: number, channels: number, isRecycle: boolean): Promise<TAVAudioReader>; private constructor(); /** * Sets the current frame to the specified time. * @param targetTime The target time to seek to. * @returns seeked or not. */ seekTo(targetTime: number): Promise<boolean>; /** * Reads the next audio frame for the output. */ readNextFrame(): Promise<void>; build(): tav.TAVAudioReader; release(): any; }