Skip to content

jkeylu/node-mpg123-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mpg123-util

Example

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published