In your code, where you do:

  .api({ hostFunction: tamedCajaHostFunc }, { audioContext: tamedContext })

you should instead be doing:

  .api({
      hostFunction: tamedCajaHostFunc,
      audioContext: tamedContext
   })

You need one object literal, not two. :) What happens when you make that
fix?

Ihab


On Fri, May 24, 2013 at 4:02 AM, Cristiano Belloni <
[email protected]> wrote:

> Hi all,
> is there a way to pass the guest page an Audio API 
> context<https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html>object?
>  It seems taming a context return undefined. Sample example
> here <https://dl.dropboxusercontent.com/u/6767816/testcajahost.html>,
> tamedContext gets undefined..
>
> (as a total Caja newbie, this is more a way to learn why not and getting
> the hang of it by trying doing things, so pease be pedantic).
>
> Thanks,
> Cristiano.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Google Caja Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Ihab A.B. Awad, Palo Alto, CA

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to