Comparing version 0.0.4 to 0.0.5
@@ -0,1 +1,8 @@ | ||
0.0.5 / 2012-11-16 | ||
================== | ||
- add initial tests (uses the "dummy" output module) | ||
- add "float" (32-bit and 64-bit) output support | ||
- ensure only one "close" event | ||
0.0.4 / 2012-11-04 | ||
@@ -2,0 +9,0 @@ ================== |
13
index.js
@@ -118,2 +118,6 @@ | ||
} | ||
if (null != opts.float) { | ||
debug('setting "float"', opts.float); | ||
this.float = opts.float; | ||
} | ||
if (null != opts.signed) { | ||
@@ -215,9 +219,12 @@ debug('setting "signed"', opts.signed); | ||
debug('close()'); | ||
if (this._closed) return; | ||
// TODO: async maybe? | ||
binding.close(this.audio_handle); | ||
if (this.audio_handle) { | ||
// TODO: async maybe? | ||
binding.close(this.audio_handle); | ||
this.audio_handle = null; | ||
} | ||
this.emit('close'); | ||
this.audio_handle = null; | ||
this._closed = true; | ||
}; |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", | ||
@@ -29,3 +29,3 @@ "repository": { | ||
"scripts": { | ||
"test": "mocha --reporter spec" | ||
"test": "node-gyp rebuild --mpg123-backend=dummy && mocha --reporter spec" | ||
}, | ||
@@ -36,3 +36,6 @@ "dependencies": { | ||
"readable-stream": "~0.0.3" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
3402450
238
381
1