Re: Problems with simple oscillator and Safari on IOS 7

nevermind ... I found the problem. The mute switch was on!!! So stupid...
strange thing is it works with Chrome even with mute switch on.


2014-01-29 Jer Noble <jer.noble@apple.com>:

>
> On Jan 29, 2014, at 9:19 AM, s p <sebpiq@gmail.com> wrote:
>
> Hi!
>
> I'm desperately trying to have a simple oscillator running on a page with
> safari on IOS 7. I thought it should be supported, but after trying
> everything, I'm losing hope. It works on chrome, and pretty much everywhere
> else web audio is supported.
>
> In fact, I have tried many examples from the web with Safari, none of them
> works. Is there a catch with Safari on IOS?
>
>
> This little oscillator test page seems to work on iOS:  (Annoy your
> co-workers!)
>
>
>
> I'll look into your test case here, but your best course of action would
> be to file a bug on http://bugs.webkit.org and cc me.
>
> -Jer
>
>
> Cheers,
>
> PS : Here is the code I am trying to run :
>
> <!DOCTYPE html><html><head>
>   <title></title>
>   <script src="js/jquery-2.0.3.min.js"></script></head>
> <body style="background:#000; padding:0; margin:0;">
>
>   <button id="play">PLAY</button>
>
>   <script>
>     var audioContext, osc
>     $('#play').click(function() {
>         audioContext = new (window.AudioContext || window.webkitAudioContext);
>         osc = audioContext.createOscillator()
>
>         osc.connect(audioContext.destination)
>         if (osc.noteOn) osc.start = osc.noteOn
>         osc.start(0)
>         osc.frequency.value = 440
>         $('body').css({'background-color': 'green'})
>     })
>   </script>
> </body>
> </html>
>
>
>
>
> --
>
> *Sébastien Piquemal *
>
>  -----* @sebpiq*
>  ----- http://github.com/sebpiq
>   ----- http://funktion.fm
>
>
>
>


-- 

*Sébastien Piquemal*

 -----* @sebpiq*
 ----- http://github.com/sebpiq
 ----- http://funktion.fm

Received on Saturday, 1 February 2014 08:47:36 UTC