Sdl_mixer wrong wiki information

Hi,

the page about sdl_mixer’s Mix_LoadWAV is wrong:
http://www.libsdl.org/cgi/docwiki.cgi/Mix_5fLoadWAV

It says

Mix_LoadWAV is a macro that creates an SDL_RWops for you then calls
Mix_LoadWAV_RW to load a WAV from a file. It supports WAVE-, MOD-,
MIDI-, OGG- and MP3 files (sometimes depends on compilation options).

But that’s wrong. Mix_LoadWAV isn’t capable of loading ogg/mp3/… files
(at least not in my test case with the mini sample that comes with
sdl_mixer).

However I didn’t want to remove that information because we had a
discussion here some time ago which stated that it is capable of doing
that.

Could someone clarify that?

Thanks,
Florian

Hi Florian,

Maybe your SDL_mixer was compiled without support for OGG and MP3 altogether.
I’m using SuSE 10.0 and that’s my case.

Can you play the MP3/OGG sound using Mix_LoadMUS()?

Cheers,
RicardoEm Quinta 24 Novembro 2005 20:43, o Florian Hufsky escreveu:

Hi,

the page about sdl_mixer’s Mix_LoadWAV is wrong:
http://www.libsdl.org/cgi/docwiki.cgi/Mix_5fLoadWAV

It says

Mix_LoadWAV is a macro that creates an SDL_RWops for you then calls
Mix_LoadWAV_RW to load a WAV from a file. It supports WAVE-, MOD-,
MIDI-, OGG- and MP3 files (sometimes depends on compilation options).

But that’s wrong. Mix_LoadWAV isn’t capable of loading ogg/mp3/… files
(at least not in my test case with the mini sample that comes with
sdl_mixer).

However I didn’t want to remove that information because we had a
discussion here some time ago which stated that it is capable of doing
that.

Could someone clarify that?

Thanks,
Florian


DeVries’s Dilemma:
If you hit two keys on the typewriter, the one you don’t want
hits the paper.

Ricardo Cruz schrieb:

Hi Florian,

Maybe your SDL_mixer was compiled without support for OGG and MP3 altogether.
I’m using SuSE 10.0 and that’s my case.

Can you play the MP3/OGG sound using Mix_LoadMUS()?

Hi Ricardo,

I use the prebuilt Windows binary from libsdl.org. I highly suggest (no:
I require) it to be enabled with whatever is standard in SDL.

Mix_LoadMUS plays MP3/OGG .

Mix_LoadWAV is a macro that creates an SDL_RWops for you then calls
Mix_LoadWAV_RW to load a WAV from a file. It supports WAVE-, MOD-,
MIDI-, OGG- and MP3 files (sometimes depends on compilation options).

Currently, Mix_LoadWAV supports WAVE, VOC, AIFF, and, apparently, OGG if
you #define OGG_MUSIC, but you’d almost certainly not want to use .ogg
files of any significant size in here, since it would have to predecode
the whole thing (the LoadMUS path decodes more as it needs it).

–ryan.

i can’t confirm this. on windows this just isn’t the case.
maybe i did something wrong, could someone else try?Am Samstag, den 26.11.2005, 01:57 -0500 schrieb Ryan C. Gordon:

Mix_LoadWAV is a macro that creates an SDL_RWops for you then calls
Mix_LoadWAV_RW to load a WAV from a file. It supports WAVE-, MOD-,
MIDI-, OGG- and MP3 files (sometimes depends on compilation options).

Currently, Mix_LoadWAV supports WAVE, VOC, AIFF, and, apparently, OGG if
you #define OGG_MUSIC, but you’d almost certainly not want to use .ogg
files of any significant size in here, since it would have to predecode
the whole thing (the LoadMUS path decodes more as it needs it).

–ryan.