Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

mciSendString position problem

Hi

I've written a class module that plays music files using mciSendString.
But there is a problem with a vbr mp3 file.

After 30 seconds, when I'm asking for the (status) position, the function returns a number (x = +-30000). Then I'm setting the position to x, but the music is NOT playing from the same position, it is playing from about 20 seconds but when I ask again the position it did NOT changed! :confused:

Semblable thing happens when I ask for the file length in seconds, a value is returned. When the song is at the end, I ask the position (y). Then I set the position to y, but the file plays from about 2/3 of it.
When I play a file it arrives at the end => position/length = 0.64...

Can you help me? Is there a bug in mciSendString while it is reading vbr mp3 file?
[842 byte] By [chrispl] at [2007-11-11 8:30:11]
# 1 Re: mciSendString position problem
Sorry for this thread
The mciSendString has some problems with vbr mp3 files. It occurs with Xing files, but for the VBRI files the mciSendString works well.
In my class module, I've corrected this bug but it didn't see the difference between Xing and VBRI.
chrispl at 2007-11-11 17:25:27 >