How to detect playing file versus stream?
I have been searching for a way to determine whether or not Winamp is playing a file or a stream from a plugin. One way that had some success was checking for a track length of -1 via IPC_GETOUTPUTTIME. However, this has an occasional glitch in that -1 is returned if the IPC is called shortly after a file starts playing. Apparently Winamp takes a brief moment to determine the length of a file and will return -1 until it calculates the information.