Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Adding 0 parameter to start() so it will work on Safari. Thanks andjosh!
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Mar 3, 2015
1 parent c9e406b commit 8b18c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var initialVol = 0.001;
oscillator.type = 'square';
oscillator.frequency.value = initialFreq; // value in hertz
oscillator.detune.value = 100; // value in cents
oscillator.start();
oscillator.start(0);

oscillator.onended = function() {
console.log('Your tone has now stopped playing!');
Expand Down

0 comments on commit 8b18c94

Please sign in to comment.