Home > @ailer/pocket > audioPreloader
audioPreloader variable
音频预加载
Signature:
typescript
audioPreloader: {
loadAudio(src: string): Promise<AudioBuffer | HTMLAudioElement>;
play(buffer: AudioBuffer | HTMLAudioElement): HTMLAudioElement | AudioBufferSourceNode | void;
}