Skip to content

exampleBuffer

exampleBuffer(key, hq?, audioContext?, baseUrl?): Promise<AudioBuffer>

Defined in: packages/pleco-xa/src/scripts/xa-file.js:257

Load and decode audio example to AudioBuffer

string

Example identifier

boolean = false

Load high quality version

AudioContext = null

Web Audio API context

string = ''

Base URL for audio files

Promise<AudioBuffer>

Decoded AudioBuffer