Then in the TaskManager, this Node.js process will occupy over 250 MB of memory.
I guess that there is a problem with the decodeAudioData function in the lib/utils.js, or is there any problem with my sample code?
By the package heapdump, I found that the AudioBuffer generated by the AudioContext.decodeAudioData function usually occupies over 50 MB of memory when the source audio file is less than 10 MB. Is that normal?
Development environment:
Windows 11
Node.js v18.12.0
web-audio-api package version 0.2.2
Sample code
Then in the TaskManager, this Node.js process will occupy over 250 MB of memory.
I guess that there is a problem with the
decodeAudioData
function in thelib/utils.js
, or is there any problem with my sample code?By the package
heapdump
, I found that the AudioBuffer generated by theAudioContext.decodeAudioData
function usually occupies over 50 MB of memory when the source audio file is less than 10 MB. Is that normal?