SDL_Mixer 1.2.7, SDL 1.2.10 and ogg

Hi everyone,

I’ve tried to hunt around for more documentation or something I may have
missed, but I’m running into a problem playing regular OGG media files
through the SDL_Mixer 1.2.7 and SDL 1.2.10. (I never had this problem
with earlier versions of the libraries)

I’m running on Windows XP (latest patches) through the MSVS6.0 compiler.

Is there any particular switch or something that I’m missing during
compilation?

thanks,
wazoo

Erik Yuzwa schrieb:

Hi everyone,

Hello Erik,

I’ve tried to hunt around for more documentation or something I may have
missed, but I’m running into a problem playing regular OGG media files
through the SDL_Mixer 1.2.7 and SDL 1.2.10. (I never had this problem
with earlier versions of the libraries)

Is this the access violation bug I asked about here earlier (occuring
when trying to load OGG files as music)? Some people seem to be able to
circumvent this bug by building their own version of the SDL and
(probably more importantly) SDL_mixer DLLs, though I haven’t tried yet.
The problem seems to be reproducible with the pre-built DLLs, though.

Sebastian> I’m running on Windows XP (latest patches) through the MSVS6.0 compiler.

Is there any particular switch or something that I’m missing during
compilation?

thanks,
wazoo


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Sebastian Beschke wrote:

Hello Erik,

I’ve tried to hunt around for more documentation or something I may have
missed, but I’m running into a problem playing regular OGG media files
through the SDL_Mixer 1.2.7 and SDL 1.2.10. (I never had this problem
with earlier versions of the libraries)

Is this the access violation bug I asked about here earlier (occuring
when trying to load OGG files as music)? Some people seem to be able to
circumvent this bug by building their own version of the SDL and
(probably more importantly) SDL_mixer DLLs, though I haven’t tried yet.
The problem seems to be reproducible with the pre-built DLLs, though.

Sebastian

Yes I believe it is Sebastian, thanks for responding.

I had this problem before when working directly with the ogg-vorbis libs
from Xiph.org. It used to be a simple process to get them into your
engine, but now it’s far more complex then it needs to be. In the end I
had to rebuild them depending upon with version of the Visual Studio
product I was using (I’m supporting VS6/7 and 8). Which meant rebuilding
the 3 ogg-vorbis libs and DLL’s for each compiler. blech.

That’s why I’m hoping to migrate over to SDL_Mixer. I’m hoping it’ll
result in a cleaner process. :slight_smile:

thanks!
Erik

I’m also getting pretty annoyed at this at the moment. I’ve tried
building my own SDL_mixer DLL, but it still yields exactly the same
error - except that now the trail ends at vorbisfile instead of
SDL_mixer :slight_smile:
Apparently it fails at the first call to a vorbisfile function
(ov_open() to be specific) in which the access violation occurs.
Strange thing is that the DLLs are loaded fine by SDL_mixer, and all
SDL_LoadFunction()'s are succesfull. Also, it’s strange that
everything work fine when the .ogg’s are loaded as samples (opened
with ov_open_callbacks() instead though, not that should matter).
It would be interesting to see where in vorbisfile the access
violation occurs, but obviously need to compile my own DLLs first -
haven’t got time for that now.

I hope someone can come up with a solution…On 6/23/06, Sebastian Beschke <sebastian.beschke at student.uni-tuebingen.de> wrote:

Is this the access violation bug I asked about here earlier (occuring
when trying to load OGG files as music)? Some people seem to be able to
circumvent this bug by building their own version of the SDL and
(probably more importantly) SDL_mixer DLLs, though I haven’t tried yet.
The problem seems to be reproducible with the pre-built DLLs, though.


Cheers,
Rasmus Neckelmann

I hope someone can come up with a solution…

I can reproduce this, and I’ll be debugging it tomorrow.

See ya!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

By the way, a quick workaround is to simply use Mix_LoadMUS_RW()
instead of Mix_LoadMUS(), which apparently works perfectly, at least
for me.On 6/26/06, Sam Lantinga wrote:

I hope someone can come up with a solution…

I can reproduce this, and I’ll be debugging it tomorrow.


Cheers,
Rasmus Neckelmann

This was caused by a C runtime mismatch. This is fixed in subversion, and you can get the updated 1.2.7 files here:
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.7-win32.zip

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment> On 6/26/06, Sam Lantinga wrote:

I hope someone can come up with a solution…

I can reproduce this, and I’ll be debugging it tomorrow.

By the way, a quick workaround is to simply use Mix_LoadMUS_RW()
instead of Mix_LoadMUS(), which apparently works perfectly, at least
for me.

anyone can do this for crazeeman? the namco sounds are in there, but they can
sue me amount of money i paid on pinball.

http://www.cloudsprinter.com/software/----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Sam Lantinga wrote:

This was caused by a C runtime mismatch. This is fixed in subversion, and you can get the updated 1.2.7 files here:
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.7-win32.zip

Great, thanks so much!

Sebastian

Great, thanks so much!

You’re welcome! :slight_smile:

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment