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
FMOD_MODE fmodFlags = FMOD_IGNORETAGS | FMOD_SOFTWARE | FMOD_MPEGSEARCH;
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 .
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. 😛
- nci asked 10 years ago
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.
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
- nci answered 10 years ago
Please login first to submit.