0
0

Is there any easy way to do this? My playlist reads the files for their tags and time, but gives the wrong time for VBR files unless I open them with FSOUND_MPEGACCURATE. I was wondering if there was a simple way to determine if the file is VBR so I can open it with FSOUND_MPEGACCURATE. Using FSOUND_MPEGACCURATE for every song in my playlist takes forever. Thanks!

  • You must to post comments
0
0

When I open the files with FSOUND_NONBLOCKING, the thread doesn’t seem to read any tags from the files, and I get a time of 0:00 for every song as well as a lot of harddrive activity. However, when I use FSOUND_NORMAL, it is able to read all the tags and get the time right for CBR files, but for VBR it is way off. Maybe I should explain what I am doing a little better. Basically, my playlist does what the Winamp playlist does, on loading the files it populates the list with the file name and the extension chopped off, then I spawn a worker thread to go back through the list and update the entry with the data from the tags as well as the time calculated as follows:
[code:42z5au81]songLength.Format("%01d:%02d",
FSOUND_Stream_GetLengthMs(readData) / 1000 / 60,
FSOUND_Stream_GetLengthMs(readData) / 1000 % 60);
[/code:42z5au81]
Any other ideas? Thanks!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.