MP3 Extractor added

This commit is contained in:
n1073645 2020-03-23 10:11:24 +00:00
parent 090bf3f8ec
commit 7c672c5ee9
1 changed files with 2 additions and 2 deletions

View File

@ -3109,10 +3109,10 @@ export function extractMP3(bytes, offset) {
// Read flag byte.
const flags = stream.readInt(1);
// Extract frame bitrate from flag byte.
// Extract frame bit rate from flag byte.
const bitRate = bitRateIndexes[flags >> 4];
// Extract frame samplerate from flag byte.
// Extract frame sample rate from flag byte.
const sampleRate = samplingRateFrequencyIndex[(flags & 0x0f) >> 2];
// Padding if the frame size is not a multiple of the bitrate.