Skip to content

Commit

Permalink
Updated, checked with Node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptorian committed Jan 6, 2020
1 parent 8e946eb commit d85f947
Show file tree
Hide file tree
Showing 3 changed files with 356 additions and 13 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ function AudioIO(options) {
audioIOAdon.read(size, (err, buf) => {
if (err)
process.nextTick(() => ioStream.emit('error', err));
ioStream.push(buf);

ioStream.push(buf);
if (buf && buf.length < size)
ioStream.push(null);
ioStream.push(null);
});
};

Expand Down
356 changes: 349 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d85f947

Please sign in to comment.