est31 / js-audio-normalizer

Apache License 2.0
33 stars 6 forks source link

Whole track should be fetched to detect gain value? #2

Open mostafa-norouzi opened 6 months ago

mostafa-norouzi commented 6 months ago

Hi, First of all thanks' for the code,

I checked it and my question is as you used below syntax :

fetch(path)

.then(function(res) {
    //...

}

the whole file should be downloaded in browser to calculate final gain number? or code consider just fetched buffer?