Y
Y
Yuri Evstafyev2017-09-19 14:35:09
JavaScript
Yuri Evstafyev, 2017-09-19 14:35:09

How to reduce memory usage in Web Audio API?

How to process / store audio files in the Web Audio API so that they take up a minimum amount of RAM? At the moment I am loading audio files and storing AudioBuffers received from them. Ultimately, with 7 MP3 audio files totaling 25 MB, the Google Chrome process uses >700 MB of RAM, and more than one gigabyte in processing these files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Evstafyev, 2017-09-20
@yevstafyev

Finally found a solution. Instead of uploading files, I used to control the audio elements that I previously added to the page. You can also work with them through the Web Audio API, which is what I needed. As a result, instead of 700 MB, the browser process uses only 100 MB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question