W3C home > Mailing lists > Public > public-audio@w3.org > January to March 2012

Any word on having web audio resample a sound stream?

From: Grant Galitz <grantgalitz@gmail.com>
Date: Sat, 17 Mar 2012 05:26:50 -0400
Message-ID: <CAD8zUBbx-AXn0qkgLAb_0HH9oUF4t+KoZHvVTf4eToepHEDB3A@mail.gmail.com>
To: public-audio@w3.org
In the rewrite of the PAPU emulation core for LLE type emulation of the JS
GBC emulator, I've bumped the sample rate to 4194304 (yeah, as in over 4
megahertz). The older core used to not have a problem with resampling in
javascript itself as the previous core was based around being sample rate
arbitrary (though it had to be set high enough to prevent most games from
having artifacts). Now that resampling has to be done by the browser, any
word on that?

https://github.com/grantgalitz/XAudioJS/blob/master/resampler.js is the
script being used to resample directly in javascript.

FYI, the mozilla audio data api actually takes this sample rate and
resamples from there, it's just google chrome's web audio api that is
lacking in a core necessity. :D
Received on Saturday, 17 March 2012 09:27:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 17 March 2012 09:27:22 GMT