SendMessage(plugin.hwndParent, WM_WA_IPC, 1, IPC_GETOUTPUTTIME) is unreliable in that it works for some files, but very often returns -1 meaning an error.
Not sure how there can be an error when Winamp clearly knows and correctly displays the track length in the playlist and must use this info to place the seek bar during playback. Anyone know why there might be an error / how to avoid?
I am looking into using
SendMessage(plugin.hwndParent, WM_WA_IPC, IPC_GET_BASIC_FILE_INFO, (WPARAM)&fileInfo)
but that seems like overkill. Also, I am not clear how that function works - does it scan the file and count music frames, or look for track length ID3 tags...? Yuck. Frustrating since Winamp obviously has the info I need.
Thanks ahead of time for any help.
Not sure how there can be an error when Winamp clearly knows and correctly displays the track length in the playlist and must use this info to place the seek bar during playback. Anyone know why there might be an error / how to avoid?
I am looking into using
SendMessage(plugin.hwndParent, WM_WA_IPC, IPC_GET_BASIC_FILE_INFO, (WPARAM)&fileInfo)
but that seems like overkill. Also, I am not clear how that function works - does it scan the file and count music frames, or look for track length ID3 tags...? Yuck. Frustrating since Winamp obviously has the info I need.
Thanks ahead of time for any help.
Comment