E
E
Enj0y2020-12-30 18:49:41
JavaScript
Enj0y, 2020-12-30 18:49:41

How to get around playbackRate AudioContext bug in Firefox?

I need to use the AudioContext to parse and change the audio file, the audio file itself is connected as HTML and clings to the AudioContext via createMediaElementSource but in this case playbackRate stops working .
This is a firefox bug that has been confirmed for 4 years or more, and it will not be fixed in any way. At the same time, playbackRate works with the buffer for the AudioContext , but in order to work this way, you must first load and decode the file into the buffer, and this is not very convenient when the audio file weighs tens or even hundreds of megabytes.

The question arises, is it possible to somehow dynamically add data to the buffer? At the same time, I first need to find out the meta tags of the sound file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question