Permalink
Browse files

fix buffering issues by upgrading readable-stream

  • Loading branch information...
1 parent da0a8ad commit ee97dff3b756ceda5a652c9fcb704f69e7a5ca0a @substack committed Sep 6, 2013
Showing with 6 additions and 5 deletions.
  1. +4 −3 example/mix.js
  2. +2 −2 package.json
View
@@ -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
@@ -1,14 +1,14 @@
{
"name" : "baudio",
- "version" : "1.1.1",
+ "version" : "1.1.2",
"description" : "generate audio streams with functions",
"main" : "index.js",
"directories" : {
"example" : "example"
},
"dependencies" : {
"inherits" : "~1.0.0",
- "readable-stream": "~1.0.2"
+ "readable-stream": "~1.1.8"
},
"repository" : {
"type" : "git",

0 comments on commit ee97dff

Please sign in to comment.