Giter VIP home page Giter VIP logo

harp.city's Introduction

harp.city's People

Contributors

vprtwn avatar

Watchers

 avatar  avatar  avatar

harp.city's Issues

No sound on iOS (& desktop) Safari

Tonejs/Tone.js#406

@eltomito the solution is to invoke Tone.context.resume() from an explicit user action. There is little that a library can do to get around the Autoplay policy, it is something that each developer must do for their own application. i will add a note to the top of the README

Tonejs/Tone.js#518

For the issue on 13.4.9, the issue is that the audio context is not started. since you've got a deferred callback which actually makes the sound, the browsers aren't able to understand that as an explicit user action starting the audio, so i think Safari won't let you play any sound until a user clicks a button followed directly by either context.resume() or something that makes sound.

For starting the context, it's enough to either call Tone.start() or sampler.context.resume() from within that button callback. I don't think you need to grab into the internal _context.

The second issue with Safari on the typescript branch is because there are no shims on that branch yet, and since Safari requires webkitAudioContext instead of AudioContext and that code isn't in there yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.