mohayonao / timbre.js

JavaScript library for objective sound programming
http://mohayonao.github.io/timbre.js/
MIT License
963 stars 74 forks source link

Broken on iOS devices #23

Closed hitode909 closed 10 years ago

hitode909 commented 10 years ago

timbre.js looks broken on iOS devices.

It doesn't play any sound.

It looks broken since 199775cd9eba3b6c3653e70b7c41715e547e9bbf .

I used code below and checked with git bisect start master 4df0821. c858ad183f3e716a77f42a8e92f7f551fce334b0 plays sin wave, but 199775cd9eba3b6c3653e70b7c41715e547e9bbf doesn't play in iOS simulator.

<html>
  <body>
    <h1>Click me</h1>
    <script src="timbre.dev.js"></script>
    <script>document.querySelector('h1').onclick=function() { console.log('click'); T("sin").play(); }</script>

timeout doesn't work

timeout looks broken since 199775cd9eba3b6c3653e70b7c41715e547e9bbf . c858ad183f3e716a77f42a8e92f7f551fce334b0 displays ended, but 199775cd9eba3b6c3653e70b7c41715e547e9bbf doesn't display ended.

<html>
  <body>
    <h1>Click me</h1>
    <script src="timbre.dev.js"></script>
    <script>
      document.querySelector("h1").onclick=function() {
        document.write("<h1>Just wait...</h1>");
        T("timeout", {timeout:500}).on("ended", function() { document.write("<h1>ended</h1>"); }).start();
      };
    </script>
SPENCERPOPE commented 10 years ago

I've used it to make numerous apps, so I'm certain it is functional on iOS. Something like this works for me: `

`
mohayonao commented 10 years ago

:godmode: thank you for your report :feelsgood:

hitode909 commented 10 years ago

:cake: :cake: :cake: