Time not shown right..

Started by Pike84,

Pike84

I was listening to this over two-hour live set by DJ Tiësto, and when I thought I had been listening to it about 20-25 mins, I checked it on Xmplay and it showed just some 12 mins. I thought I had just mistaken, but after another hour or so, I checked again and now it showed only some 4 mins ???.

So, something's not right. It could be that the timer somehow resets itself at times, but I'm not sure. Also changing the display mode of the timer doesn't seem to have an effect. Maybe you could look into it, Ian :).

Olego

Go Digitally Imported!  Well, at least I assume that it was the radio station you were listening to.  As Ian told me, Windows drivers are returning incorrect time when he queries them.  It resets every 50 minutes...  By the looks of it, they used a short int instead of a long int.  :-)

What I am wondering is whether you, Ian, can start a counter by GetTickCount() when the stream starts playing and base your clock off that.  I don't know how reliable that function is, but it's more reliable than Windows drivers...  Ne?

~Olego~

Ian @ un4seen

QuoteAs Ian told me, Windows drivers are returning incorrect time when he queries them.  It resets every 50 minutes...  By the looks of it, they used a short int instead of a long int.  :-)
That's partly correct, in that the position that Windows reports is suddenly resetting, mid-playback. But there isn't a fixed time that it happens. That suggests it's not a counter overflow, but something stranger happening in WinXP (it never happens in Win9x as far as I'm aware). It also happens with different soundcards/drivers, so that again, suggests it's Windows that's screwing up (rather than the drivers).

XMPlay relies on Windows/drivers reporting the current position correctly, for the time display to be correct and the vis/level to be in sync with the sound. It doesn't affect the actual playback though.

Anyway... I intend to look into a workaround for 2.7 :)

Pike84

Olego: I don't think that's the case here, cause it wasn't a net radio I was listening to. It was a normal mp3 file, downloaded from www.tranceaddict.com.