21 May '13 - 21:33 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Exact time of track's end in stream  (Read 360 times)
zhukovsd
Posts: 9


« on: 5 Sep '12 - 19:28 »
Reply with quoteQuote

Hello!

I'm trying to record splitted songs from stream, created by BASS_StreamCreateURL.

I use DownloadProc callback for saving data and SyncProc (callback function, set by BASS_ChannelSetSync with BASS_SYNC_META flag) to separate songs (tags changed = track changed).

But I got mistiming Undecided Track ends earlier, that I get new tags for the next track.

I think it's typical question, but I tried to search in forum at leats for 1 hour and found nothing.

Please help, thank you.
Logged
radio42
Posts: 4012


« Reply #1 on: 5 Sep '12 - 20:31 »
Reply with quoteQuote

The issue with this is basically due to streaming-server sided buffering (e.g. on a SHOUTcast or ICEcast server).
Meaning the meta data notifications doesn't come in perfect sync with the real sample data.
There is not much to do about it.
Logged
zhukovsd
Posts: 9


« Reply #2 on: 5 Sep '12 - 20:42 »
Reply with quoteQuote

Thanks for answer.

Too bad I had not found any way to get server buffering time. If I did, I could crop unwanted seconds of next track.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines