Skip to content

Commit

Permalink
note about starting on user action
Browse files Browse the repository at this point in the history
  • Loading branch information
tambien committed Apr 6, 2018
1 parent fde0a33 commit 198450e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tone/core/Offline.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ define(["Tone/core/Tone", "Tone/core/Transport", "Tone/core/Buffer", "Tone/core/
* Generate a buffer by rendering all of the Tone.js code within the callback using the OfflineAudioContext.
* The OfflineAudioContext is capable of rendering much faster than real time in many cases.
* The callback function also passes in an offline instance of Tone.Transport which can be used
* to schedule events along the Transport.
* to schedule events along the Transport. **NOTE** OfflineAudioContext has the same restrictions
* as the AudioContext in that on certain platforms (like iOS) it must be invoked by an explicit
* user action like a click or tap.
* @param {Function} callback All Tone.js nodes which are created and scheduled within this callback are recorded into the output Buffer.
* @param {Time} duration the amount of time to record for.
* @return {Promise} The promise which is invoked with the Tone.Buffer of the recorded output.
Expand Down

0 comments on commit 198450e

Please sign in to comment.