Comparing version 0.1.0 to 0.1.2
@@ -0,9 +1,22 @@ | ||
0.1.2 / 2014-01-11 | ||
================== | ||
* package: update `readable-stream` dep to v1.1.10 | ||
* travis: test node v0.10 and v0.11 | ||
* Writer: bypassed `stream-parser` to avoid assertion error (#1, #5) | ||
0.1.1 / 2013-12-12 | ||
================== | ||
* Fix package.json repository URL so npm link isn't broken (@cbebry) | ||
0.1.0 / 2013-03-07 | ||
================== | ||
- reader: passthrough the audio data chunk until EOF | ||
- test: begin testing with Travis-ci | ||
- add experimental RIFX support | ||
- reader, writer: integrate the "stream-parser" mixin | ||
- test: add initial Reader tests | ||
* reader: passthrough the audio data chunk until EOF | ||
* test: begin testing with Travis-ci | ||
* add experimental RIFX support | ||
* reader, writer: integrate the "stream-parser" mixin | ||
* test: add initial Reader tests | ||
@@ -13,2 +26,2 @@ 0.0.1 / 2012-02-05 | ||
- Initial release | ||
* Initial release |
@@ -6,7 +6,5 @@ | ||
var assert = require('assert'); | ||
var inherits = require('util').inherits; | ||
var debug = require('debug')('wave:writer'); | ||
var Transform = require('stream').Transform; | ||
var Parser = require('stream-parser'); | ||
@@ -77,2 +75,3 @@ // for node v0.8.x support, remove after v0.12.x | ||
this.bitDepth = 16; | ||
this.bytesProcessed = 0 | ||
@@ -86,14 +85,7 @@ if (opts) { | ||
// the first time _transform() is called, _writeHeader() will be run | ||
//this.immediate(this._writeHeader); | ||
this._bytes(0, this._writeHeader); | ||
this._writeHeader() | ||
} | ||
inherits(Writer, Transform); | ||
/** | ||
* Mixin `Parser`. | ||
*/ | ||
Parser(Writer.prototype); | ||
/** | ||
@@ -105,3 +97,3 @@ * Writes the WAVE header. | ||
Writer.prototype._writeHeader = function (chunk, write) { | ||
Writer.prototype._writeHeader = function () { | ||
debug('_writeHeader()'); | ||
@@ -188,5 +180,3 @@ var headerLength = 44; // TODO: 44 is only for format 1 (PCM), any other | ||
// flush the header and after that pass-through "dataLength" bytes | ||
write(header); | ||
this._passthrough(dataLength, this._onEnd); | ||
this.push(header); | ||
}; | ||
@@ -205,2 +195,14 @@ | ||
/** | ||
* Transform incoming data. We don't do anything special, just pass it through. | ||
* | ||
* @api private | ||
*/ | ||
Writer.prototype._transform = function (chunk, enc, done) { | ||
this.push(chunk) | ||
this.bytesProcessed += chunk.length | ||
done() | ||
}; | ||
/** | ||
* Emits a "header" event after the readable side of the stream has finished. | ||
@@ -211,3 +213,3 @@ * | ||
Writer.prototype._flush = function (write, done) { | ||
Writer.prototype._flush = function (done) { | ||
debug('_flush()'); | ||
@@ -214,0 +216,0 @@ done(); |
{ | ||
"name": "wav", | ||
"description": "`Reader` and `Writer` streams for Microsoft WAVE audio files", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"author": "Nathan Rajlich <nathan@tootallnate.net>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/TooTallNate/node-wave.git" | ||
"url": "git://github.com/TooTallNate/node-wav.git" | ||
}, | ||
@@ -13,4 +13,4 @@ "keywords": [], | ||
"debug": "*", | ||
"stream-parser": "*", | ||
"readable-stream": "~0.0.3" | ||
"readable-stream": "~1.1.10", | ||
"stream-parser": "~0.1.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
1056402
546
1
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddebug@1.0.5(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedstream-parser@0.1.2(transitive)
+ Addedstring_decoder@0.10.31(transitive)
- Removeddebug@2.6.9(transitive)
- Removedreadable-stream@0.0.4(transitive)
- Removedstream-parser@0.3.1(transitive)
Updatedreadable-stream@~1.1.10
Updatedstream-parser@~0.1.0