Can someone help me, I am looking for an FMOD function that returns
the type of a stream.
Like FMUSIC_GetType does for Mods, so something like FSOUND_GetType(Filename)
which then returns FSOUND_TYPE_OGG, FSOUND_TYPE_MP3, FSOUND_TYPE_WHATEVER.
Maybe it is there and I just can’t find it, looked in docs and forums.
Thank in advance.
I am sorry I didn’t show up here for a while after asking a question.
But my PIII 450 just died and I didn’t have an other machine with email and stuff.
Now it is all fixed and pleased to see that you all replied. Thanks.
I conclude that the waiting for FMOD 4 is really worth it.
Brett, I also know it doesn’t happen very often that a extension is wrong.
And I too get the creeps of the kind of people that name their files wrong.
But then they still use the same media player as we do and they think it is
an mp3 because they see that in the file name and the player.
Anyways thanks a lot. 😀
Brett, forgive me for pointing this out, but the file extension isn’t always an accurate indicator of file format. Supposing by some odd chance you ended up with an Ogg Vorbis file named Song.mp3 … FMOD would still load it, but internally it would say “Okay, so this is an ogg… let’s give it to libogg. However, the software looks at the file and then tells the user “This is an MP3” even though FMOD knows it’s really an ogg.
Then again, perhaps being an indubitable perfectionist/purist, I’m the only one who would really care about that little discrepancy…
Hey, it may seem farfetched, but it could still happen–especially when you’re dealing with purists. I, for example, might accidentally download a WMA (or even an MP3-compressed WAV), but because I don’t like to see more than one file extension in my music folder, would rename it to .mp3. But even more than that, what would you do you do on a system that doesn’t use file extensions, like the Mac? In a situtation like that, you can’t figure out the file format by looking at the filename, since there’s nothing to go by.
Anyway, thanks for adding this to FMOD4, Brett. I’ve actually wanted to see this for a while, but have been too afraid to speak up for fear of being embarrassed.
[quote="Graduate Bruce 2002":2rwhmnfk]might accidentally download a WMA (or even an MP3-compressed WAV), but because I don’t like to see more than one file extension in my music folder, would rename it to .mp3.[/quote:2rwhmnfk]
😮 People like this give me nightmares. lol 😀
Please login first to submit.