var fs = require('fs')
, lame = require('lame')
, Speaker = require('speaker');
var stream = fs.createReadStream('/path/to/some.mp3')
, decoder = new lame.Decoder()
, speaker = new Speaker();
decoder.on('format', function() {
mpg123Util.setVolume(decoder.mh, 0.5);
var vol = mpg123Util.getVolume(decoder.mh);
console.log(vol);
});
stream.pipe(decoder).pipe(speaker);
-
Notifications
You must be signed in to change notification settings - Fork 4
License
jkeylu/node-mpg123-util
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published