mp3-concat
A transform stream that you write several mp3 files to and transforms them into one single mp3 file.
Just make sure, that you've got mp3cat installed
and available in your PATH
example
var fs = ;var async = ;var concatstream = ; // Create the concat streamvar concatenater = ; // Pipe the output to a 'concat.mp3' fileconcatenater; // Loop through the files in seriesasync;
events
.on('offset', cb({ duration: [Number], offset: [Number] }))
This event is emitted per input stream. duration
is the calculated duration
of the file/stream resource, while offset is its position in the concatenated
file. Both numbers are in seconds.
.on('error', cb({ rawError: [Error], reason: [String] })
This event is fired when there's trouble spawning mp3cat
. This is most
probably because you forgot to install it and add it to your PATH
.