I've written a Java RMI interface (will be releasing public soon) to Winamp 2 allow realtime control and dislay on winamp/mp3 info on any Java based platform.
Whilst this is well and good the problem I have is calculating the client delay in order for the user
to sync lyrics/time informaiton.
Is there an API for Winamp/Shoutcast to tell me this ?
Or I was thinking the following algorythm for a workaround.
Server caches Song the Time each song is started.
Users clicks a button "Calibrate" - or something when they hear a song start which sends a message to the server. The
server then looks at the cache to see when the last song was started and calculates the latency, then simply delays
the real-time feed (lyrics/time etc) by this amount every time.
Not sure how reliable that would be hence the question for an API.
Any thoughts ?