1.0.3 • Published 12 months ago

unify-mp3-timing v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

web audio mp3 decode

I DO NOT OWN THIS REPO, THE ONLY REASON THAT I FORK THIS AND PUBLISH ON NPM IS THAT THE AUTHOR DID'NT PUBLISH IT ON NPM.

WARNING: WORK IN PROGRESS

The decodeAudioData function provided by web audio API, when used to decode mp3 files, behaves differently across browsers. On some browsers it trims off paddings at the beginning/end of samples, while on others it doesn't. This seems to be caused by different interpretation of LAME tags. The result is decoded audio buffers have different duration and different timing.

This project aims to provide a workaround to unify the mp3 timing across browsers, by explicitly parse and then remove such info frames if applicable.

This project uses web audio API and mp3-parser.

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago