Comparing version 0.1.0 to 0.1.2
0.1.2 / 2014-06-02 | ||
================== | ||
* package: update "nan" to v1.1.2 | ||
* package: update "mocha" dev dependency | ||
0.1.1 / 2014-05-27 | ||
================== | ||
* binding: update to nan v1.1.0 API, fixes node v0.11.13+ | ||
* add appveyor.yml file for Windows testing | ||
* README: add appveyor build badge | ||
* README: use svg for travis badge | ||
* travis: don't test node v0.9.x | ||
* index: make _format() bind to the speaker instance | ||
* don't leave event listeners behind (#22, @LinusU) | ||
0.1.0 / 2014-04-17 | ||
@@ -3,0 +20,0 @@ ================== |
18
index.js
@@ -61,4 +61,7 @@ | ||
// bind event listeners | ||
this._format = this._format.bind(this); | ||
this.on('finish', this._flush); | ||
this.on('pipe', this._pipe); | ||
this.on('unpipe', this._unpipe); | ||
} | ||
@@ -229,6 +232,19 @@ inherits(Speaker, Writable); | ||
this._format(source); | ||
source.once('format', this._format.bind(this)); | ||
source.once('format', this._format); | ||
}; | ||
/** | ||
* Called when this stream is pipe()d to from another readable stream. | ||
* If the "sampleRate", "channels", "bitDepth", and "signed" properties are | ||
* set, then they will be used over the currently set values. | ||
* | ||
* @api private | ||
*/ | ||
Speaker.prototype._unpipe = function (source) { | ||
debug('_unpipe()'); | ||
source.removeListener('format', this._format); | ||
}; | ||
/** | ||
* Calls the `flush()` bindings for the audio backend. | ||
@@ -235,0 +251,0 @@ * |
@@ -22,3 +22,3 @@ { | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", | ||
@@ -36,8 +36,8 @@ "repository": { | ||
"debug": "~0.8.0", | ||
"nan": "~0.8.0", | ||
"nan": "~1.1.2", | ||
"readable-stream": "1.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.12.0" | ||
"mocha": "~1.18.0" | ||
} | ||
} |
node-speaker | ||
============ | ||
### Output [PCM audio][pcm] data to the speakers | ||
[![Build Status](https://secure.travis-ci.org/TooTallNate/node-speaker.png)](http://travis-ci.org/TooTallNate/node-speaker) | ||
[![Build Status](https://secure.travis-ci.org/TooTallNate/node-speaker.svg)](https://travis-ci.org/TooTallNate/node-speaker) | ||
[![Build Status](https://ci.appveyor.com/api/projects/status/wix7wml3v55670kw)](https://ci.appveyor.com/project/TooTallNate/node-speaker) | ||
@@ -6,0 +7,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3408060
240
452
109
+ Addednan@1.1.2(transitive)
- Removednan@0.8.0(transitive)
Updatednan@~1.1.2