Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix buffering issues by upgrading readable-stream

  • Loading branch information...
commit ee97dff3b756ceda5a652c9fcb704f69e7a5ca0a 1 parent da0a8ad
@substack authored
Showing with 6 additions and 5 deletions.
  1. +4 −3 example/mix.js
  2. +2 −2 package.json
View
7 example/mix.js
@@ -1,8 +1,9 @@
var baudio = require('../');
-var b = baudio();
-b.push(8, function (t, i) {
+var b = baudio(function (t, i) {
// taken from some demoscene video
- return (i & 0x71) * Math.floor(i / 1000);
+ return ((
+ (i & 0x71) * Math.floor(i / 3571) * Math.floor(i / 3559)
+ ) % 256) / 128 - 1;
});
b.play();
View
4 package.json
@@ -1,6 +1,6 @@
{
"name" : "baudio",
- "version" : "1.1.1",
+ "version" : "1.1.2",
"description" : "generate audio streams with functions",
"main" : "index.js",
"directories" : {
@@ -8,7 +8,7 @@
},
"dependencies" : {
"inherits" : "~1.0.0",
- "readable-stream": "~1.0.2"
+ "readable-stream": "~1.1.8"
},
"repository" : {
"type" : "git",
Please sign in to comment.
Something went wrong with that request. Please try again.