upadhyaypushpendra / webm-to-wav-converter

JavaScript package to convert audio/webm audio format into audio/wave
GNU General Public License v3.0
16 stars 3 forks source link

added audio context #1

Closed siddhant-nipun closed 2 years ago

siddhant-nipun commented 2 years ago

line 79: const audioBuffer = await this.audioContext.decodeAudioData(arrayBuffer)

was giving an error that decodeAudioData cannot read properties of undefined. Adding an audio context fixed the error for me. I found this library useful, so wanted to help fix this minor issue. :)

upadhyaypushpendra commented 2 years ago

Hey @siddhant-nipun, thanks for your contribution. it will help others.