0
0

Today I stumbled upon something odd. FMOD loads this one perticular bitmap as an MPEG. Dont ask…

these are the flags im using for createstream
[code:2htvfqry]
FMOD_MODE fmodFlags = FMOD_IGNORETAGS | FMOD_SOFTWARE | FMOD_MPEGSEARCH;
[/code:2htvfqry]

The bitmap file that it loads is a 32-bit bitmap created with GIMP. Here is the link to the file so you can try it yourself :) .

[url:2htvfqry]http://storage.neptunecentury.com/main.bmp[/url:2htvfqry]

I decided to make another 32-bit bitmap but it wouldnt load. I also tried various other bitmaps. Only the one linked loads in fmod and fmod says its of type MPEG. So, maybe you can determine from the bitmap why fmod thinks its an mpeg?

anyway, just thought I would point that out. 😛

  • You must to post comments
0
0

mpeg doesnt have a robust header, the fact that you specified FMOD_MPEGSEARCH means it is going to scan the whole file looking for 0xFF 0xFB codes and when it finds it, it scans ahead 1 ‘mpeg frame’ to see if there is another 0xFF 0xFB header there and thats all it takes to say it is an mpeg. Its not beyond impossible that random bytes will fool the header checker like this.

  • You must to post comments
0
0

haha well, ok then. I’ll have to add some better filters to my program to prevent this from happening. I use MPEG_SEARCH because more often than not audio files come a little currupted. I was just basically wondering why it was loading it. Thanks

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.