Permalink
Browse files

Merge pull request #5 from gabriel-cardoso/master

Worker script path in config
  • Loading branch information...
2 parents 017f7bb + c1085a7 commit 996955b3822836b709d79d7c756aa1681594d139 @mattdiamond committed Sep 16, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −1 recorder.js
View
@@ -14,6 +14,7 @@ Creates a recorder instance.
---------
#### Config
+- **workerPath** - Path to recorder.js worker script. Defaults to 'js/recorderjs/recorderWorker.js'
- **bufferLen** - The length of the buffer that the internal JavaScriptNode uses to capture the audio. Can be tweaked if experiencing performance issues. Defaults to 4096.
- **callback** - A default callback to be used with `exportWAV`.
- **type** - The type of the Blob generated by `exportWAV`. Defaults to 'audio/wav'.
View
@@ -7,7 +7,7 @@
var bufferLen = config.bufferLen || 4096;
this.context = source.context;
this.node = this.context.createJavaScriptNode(bufferLen, 2, 2);
- var worker = new Worker(WORKER_PATH);
+ var worker = new Worker(config.workerPath || WORKER_PATH);
worker.postMessage({
command: 'init',
config: {

0 comments on commit 996955b

Please sign in to comment.