Re: Different results in decodeAudioData?

HI Peter,

I'm not sure what you mean by "set the loop points" since MP3 loop points aren't decoded into an AudioBuffer by Web Audio as far as I'm aware.

In looping externally loaded samples I've found it best to encode loop points in a separate file of metadata that is read in its own XHR, rather than attempting to load loop points into the browser as part of the MP3 file (which I've never tried to make work).

On Feb 12, 2013, at 9:40 AM, Peter van der Noord <peterdunord@gmail.com> wrote:

> I'm creating a little music-engine where a collection of mp3's can be grouped and seamlessly looped. Due to the nature of mp3s, this requires to set the actual looping points of all mp3 in the decoded data beforehand, so we know exactly which bytes to play.
> 
> I set the looppoints for some testfiles at home, but when i checked the project at work, i noticed that they were all placed incorrectly, so it seems that different browsers can decode mp3files differently (this was all in chrome btw). Is this just how it is, and will my method therefor not work crossbrowser (without me having to set those looppoints for each brower+version)?
> 
> 
> Peter

... .  .    .       Joe

Joe Berkovitz
President

Noteflight LLC
Boston, Mass.
phone: +1 978 314 6271
www.noteflight.com
"Your music, everywhere"

Received on Tuesday, 12 February 2013 18:47:09 UTC