0
0

I play a Shoutcast stream and at the same time write it as an MP3 file. I use metacallback to know when to open and close the mp3 file I write. Often there is a lag of a second or two between the notification I receive and the actual stream, so that the previous mp3 file will have a second or two of the beginning of the current file and current file will have that second or two missing from the beginning and so on.

Is this the way Shoutcast works, is there any way to get around this and make it more precise?

  • You must to post comments
0
0

That’s the way SHOUTcast works. FMOD calls your metadata callback as soon as it receives metadata. You could try scanning back through the stream (you may have to buffer it yourself) to find a gap of silence but, of course, that will only work for streams that have silence between tracks.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.