@mediabunny/mp3-encoder 1.17.3 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -205,11 +205,11 @@ var MediabunnyMp3Encoder = (() => {
|
|
|
205
205
|
if (layer === 0) {
|
|
206
206
|
return 0;
|
|
207
207
|
} else if (layer === 1) {
|
|
208
|
-
return Math.
|
|
208
|
+
return Math.floor(144 * bitrate / (sampleRate << lowSamplingFrequency)) + padding;
|
|
209
209
|
} else if (layer === 2) {
|
|
210
|
-
return Math.
|
|
210
|
+
return Math.floor(144 * bitrate / sampleRate) + padding;
|
|
211
211
|
} else {
|
|
212
|
-
return (Math.
|
|
212
|
+
return (Math.floor(12 * bitrate / sampleRate) + padding) * 4;
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
var readFrameHeader = (word, remainingBytes) => {
|