W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Re: Web Audio Examples Re: Realtime Analyzer

From: Chris Rogers <crogers@google.com>
Date: Sat, 7 Apr 2012 12:42:17 -0700
Message-ID: <CA+EzO0mLTor3bH9b+HjX1Yg+aZCUyURmvmAJy0QGDjWyMx0P1w@mail.gmail.com>
To: Gabriel Cardoso <gabriel.cardoso@inria.fr>
Cc: Johann Diedrick <jdiedrick@gmail.com>, public-audio@w3.org
On Sat, Apr 7, 2012 at 11:03 AM, Gabriel Cardoso
<gabriel.cardoso@inria.fr>wrote:

> Hello Johann,
>
> Any errors in the Javascript Console ?
>
> I didn't look closely at this example but I bet it loads the audio buffers
> with an XMLHttpRequest. This won't work on local files in Chrome... You
> need to launch a web server locally or try to find a hack to allow
> XMLHttpRequests for file:// protocol in Chrome
>
> Hope it helps, good luck !
>
> Gabriel
>


For Chrome you need to launch it with a "special" command-line flag if you
want to allow local file access:
So, for example for Mac OS X, in a terminal, launch Chrome something like
this (adjust pathnames as necessary):

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
--allow-file-access-from-files

Cheers,
Chris


>
>
> ----- Mail original -----
> > De: "Johann Diedrick" <jdiedrick@gmail.com>
> > À: public-audio@w3.org
> > Envoyé: Vendredi 6 Avril 2012 19:42:00
> > Objet: Web Audio Examples Re: Realtime Analyzer
> > Hello List-
> >
> > I recently came across the Web Audio examples on this page:
> >
> > http://chromium.googlecode.com/svn/trunk/samples/audio/index.html
> >
> > They are really fantastic! I'm interested in working with the Realtime
> > Analyzer example for a project. I'm having problems getting it to work
> > on my local machine, however. I've downloaded the HTML source, along
> > with the js files included with the HTML source. And yet, it still
> > won't
> > load when I try to run the page. Is there something I'm missing? Would
> > it be possible to get the entire folder that contains that example?
> >
> > Thanks so much in advance.
> >
> > All the best.
> >
> > -Johann
>
>
Received on Saturday, 7 April 2012 19:42:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 7 April 2012 19:42:47 GMT