From b2458a43085f1f1fa95411c6311da8ceea50f170 Mon Sep 17 00:00:00 2001 From: Scott Michaud Date: Fri, 13 Mar 2015 16:03:02 -0400 Subject: [PATCH] Updated README to reflect changes to src --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 618b638..8feba70 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ or `loader.src = ['audio/file1.mp3', 'audio/file2.mp3', 'sounds/filec.mp3'];` -`ctx` (required) is your WebAudio context that will perform the actual decode. -Note: In the future, this might be made optional. If so, and if it is not -provided a valid WebAudio context, it will create one. +`ctx` (optional) is your WebAudio context that will perform the actual decode. +If it is not provided, one will be created on `send()`. If it exists but is not +an `AudioContext`, an error will be thrown and the function will terminate. `loader.ctx = yourAudioContext;`