dgurkaynak / nodeshout

Native libshout bindings for node.js
MIT License
49 stars 19 forks source link

Metadata at given time #3

Closed daslicht closed 8 years ago

daslicht commented 8 years ago

Hi, let's say we have a DJ Mix of multiple songs wich is one long audio file. Is there a way to determine the current position of the stream so that we can inject the correct metadata ?

dgurkaynak commented 8 years ago

Hey,

There is no easy way to do this, I guess. My approach would be setting up a custom pass-through stream between FileReadStream and ShoutStream. Then you can calculate the position according to data length and source encoding.

daslicht commented 8 years ago

Yeah that was my approach either :) but the calculation is anything else than trivial :D