0
0

Sometimes the function FSOUND_Stream_GetTime (or FSOUND_Stream_GetLengthMs) returns a wrong time, its almost something like the double or even more of the real time. I used the vb-sample, what’s wrong?

thx, Humbrie

  • You must to post comments
0
0

I have solved the VBR problem with some code also found on this forum that checks the first 5000 bytes or so, and searches for a VBR header.
When this header is found, the file is loaded ACCURATE, else it is loaded normally.

Loading the mp3 in memory can also be done in Visual Basic.

  • You must to post comments
0
0

While opening the file with FSOUND_Stream_OpenFile use the FSOUND_MPEGACCURATE parameter. But be carefull since it scans the whole file before playing. You can then use the get time and length methods with accuracy.

c u laser

  • You must to post comments
0
0

[quote="brett":3g0k4y72]FMOD 3.6 even introduces a FSOUND_NONBLOCKING flag so that it does it in the background.[/quote:3g0k4y72]

With the non-blocking flag, will the stream start playing while it calculates the accurate length in the background as well? I’m just curious exactly what the non-blocking allows us to do and not do.

  • You must to post comments
0
0

some track above 4 minutes were scanned too long. Is there any possibility to check if a file needs this FSOUND_MPEGACCURATE ?! :(

  • You must to post comments
0
0

ok ok, sry but on large mp3 files it takes sometimes 3-4seconds to load :( .Nevertheless fmod is the best i’ve ever found in the internet with maximum features. Big thx for this.

Humbrie

  • You must to post comments
0
0

In help i found this mode: FSOUND_LOADMEMORY to accelerate. But i don’t know how to handle it in vb.net (or vb6). Anyone got experience with that?

thx m8s

  • You must to post comments
0
0

No don’t do that. It loads the whole file to the memory. Just find on the internet some procedures which analyze the MPEG file. For example in delphi I find usefull the MPEGaudio component found in [url:2y7kkk7t]http://jfaul.de/atl/[/url:2y7kkk7t]. Try to search sth equivalent in vb, or use the delphi code with your dot net suite. ๐Ÿ˜‰
Once you find that your file is encoded with VBR then load MPEGACCURATE.

c u laser

PS. some usefull information can be found in [url:2y7kkk7t]http://www.mp3-tech.org/programmer/frame_header.html[/url:2y7kkk7t]

  • You must to post comments
0
0

[quote="Humbrie":2ojlc0rm]In help i found this mode: FSOUND_LOADMEMORY to accelerate. But i don’t know how to handle it in vb.net (or vb6). Anyone got experience with that?

thx m8s[/quote:2ojlc0rm]

What it means is that you load the entire MP3 file into a memory block that you allocated. Then you use FSOUND_Stream_OpenFile with the FSOUND_LOADMEMORY and FSOUND_MPEGACCURATE flags, passing the pointer to the memory block as the filename parameter. The entire file is then scanned, but since it is already in memory it will be a lot quicker than if the file was still on disk. Of course, this defeats the purpose of streaming since you usually do not want to load the entire file into memory in the first place.

  • You must to post comments
0
0

Nothing wrong with loading 30-50MB into memory. Oh yeah, I’ve got 512MB RAM. ๐Ÿ˜€

  • You must to post comments
0
0

It wasn’t me who gave me the girly avatar. ๐Ÿ˜›
One day I’ll change it.

  • You must to post comments
0
0

perhaps some day this might be solved “in-code”. Winamp doesnt need to load the entire file to get the real time… :/

  • You must to post comments
0
0

I found a Xing VBR SDK in [url:2cdwbm23]http://www.mp3-tech.org/programmer/sources/vbrheadersdk.zip[/url:2cdwbm23]. Xing has an interesting technology on getting the time and position of the VBR MP3. Sadly I haven’t tested it yet… :-(
But anyone interested can check it out.

c u laser

  • You must to post comments
0
0

it’s only for VBR’s made by another Xing-Produkt. But i’m going to use an sample out of my old code from VB6. I found it on this page:
[url:3236r45s]http://home12.inet.tele.dk/mkaratha/[/url:3236r45s]
It’s not up to date, but good. 8)

  • You must to post comments
Showing 13 results
Your Answer

Please first to submit.