OK, so I got impatient waiting for an answer and wrote my own.  I have 
placed the results on github:

https://github.com/leathrum/audio-api

This includes the whole GWT wrapper, but the compatibility JS library is in 
particular the bit at: 

Audio/src/edu/jsu/leathrum/audio/shared/public/moz2wk-audio.js

I did have to make a minor tweak to the API in order to be sure that it 
would be compatible with both the Mozilla Audio Data API and the W3C Web 
Audio API:  I included connect() and disconnect() methods, which are not 
part of the Mozilla API but are needed for proper function in the Web Audio 
API.  The compatibility library implements these, using empty functions if 
the browser is not WebKit.

The github includes code for a simple tone generator as a test of the API. 

As usual, your mileage may vary, no warranties express or implied....  Have 
fun with it!

On Tuesday, March 20, 2012 7:50:09 PM UTC-5, leathrum wrote:
>
> I have written a GWT wrapper for the Mozilla Audio Data API (
> https://wiki.mozilla.org/​Audio_Data_API<https://wiki.mozilla.org/Audio_Data_API>)
>  
> and have tested it to the extend of adapting the tone generator code on 
> that page for GWT.  The page also describes a JavaScript library 
> audionode.js which allows audio code written for the W3C Web Audio API 
> (implemented in Webkit) to run through the Mozilla API.  I am looking for 
> something to operate in the opposite direction from what audionode.js does 
> -- that is, to allow the code which works in the Mozilla API to also work 
> in the Webkit API.  Does anyone know of such a JavaScript library?  If I 
> can find such a thing, I can include it in a web application by including a 
> <script> tag in the *.gwt.xml file for the audio package, and not have to 
> change any other code.  If someone else has already done something like 
> this, there isn't any sense in me reworking it from scratch.
>

On Tuesday, March 20, 2012 7:50:09 PM UTC-5, leathrum wrote:
>
> I have written a GWT wrapper for the Mozilla Audio Data API (
> https://wiki.mozilla.org/​Audio_Data_API<https://wiki.mozilla.org/Audio_Data_API>)
>  
> and have tested it to the extend of adapting the tone generator code on 
> that page for GWT.  The page also describes a JavaScript library 
> audionode.js which allows audio code written for the W3C Web Audio API 
> (implemented in Webkit) to run through the Mozilla API.  I am looking for 
> something to operate in the opposite direction from what audionode.js does 
> -- that is, to allow the code which works in the Mozilla API to also work 
> in the Webkit API.  Does anyone know of such a JavaScript library?  If I 
> can find such a thing, I can include it in a web application by including a 
> <script> tag in the *.gwt.xml file for the audio package, and not have to 
> change any other code.  If someone else has already done something like 
> this, there isn't any sense in me reworking it from scratch.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/33Vx3hYaTacJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to