To display the audio waveform along the trim timeline, useAudioWaveform.ts reads the entire uploaded file into memory using file.arrayBuffer() and decodes it:
typescript
audioContext = new AudioContextCtor();
const audioBuffer = await audioContext.decodeAudioData(
await file.arrayBuffer()
);
To display the audio waveform along the trim timeline, useAudioWaveform.ts reads the entire uploaded file into memory using file.arrayBuffer() and decodes it:
typescript
audioContext = new AudioContextCtor();
const audioBuffer = await audioContext.decodeAudioData(
await file.arrayBuffer()
);