Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wav

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wav - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

25

History.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc