Wondering what’s next for npm?Check out our public roadmap! »

    node-mpg123-util

    0.0.3 • Public • Published

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

    Install

    npm i node-mpg123-util

    DownloadsWeekly Downloads

    12

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar