Comparing version 0.0.8 to 0.0.9
@@ -0,1 +1,7 @@ | ||
0.0.9 / 2013-03-06 | ||
================== | ||
- update for v0.9.12 Writable stream API change | ||
- a couple more jsdoc comments | ||
0.0.8 / 2013-02-10 | ||
@@ -2,0 +8,0 @@ ================== |
13
index.js
@@ -114,3 +114,5 @@ | ||
/** | ||
* Set given PCM formatting options. | ||
* Set given PCM formatting options. Called during instantiation on the passed in | ||
* options object, on the stream given to the "pipe" event, and a final time if | ||
* that stream emits a "format" event. | ||
* | ||
@@ -160,2 +162,3 @@ * @param {Object} opts | ||
* @param {Buffer} chunk | ||
* @param {String} encoding ignore (grrrr.....) | ||
* @param {Function} done | ||
@@ -165,4 +168,8 @@ * @api private | ||
Speaker.prototype._write = function (chunk, done) { | ||
Speaker.prototype._write = function (chunk, encoding, done) { | ||
// streams2 are really starting to suck :\ | ||
if (typeof encoding == 'function') done = encoding; | ||
debug('_write() (%d bytes)', chunk.length); | ||
if (this._closed) { | ||
@@ -211,3 +218,3 @@ // close() has already been called. this should not be called | ||
* Called when this stream is pipe()d to from another readable stream. | ||
* If the "sampleRate", "channels", "bitDepth", and "signed" properties are, | ||
* If the "sampleRate", "channels", "bitDepth", and "signed" properties are | ||
* set, then they will be used over the currently set values. | ||
@@ -214,0 +221,0 @@ * |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", | ||
@@ -24,0 +24,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
3405393
373