SDL_Mixer, loading and unloading ogg dlls erverytime an ogg file is loaded

Hi!

Why is SDL_Mixer loading and unloading the ogg libraries erverytime a
file is loaded with Mix_LoadWAV?

The libraries libvorbisfile-3.dll libvorbis-0.dll and libogg-0.dll are
loaded and unloaded every time. This makes loading several sound file
much slower. I am using SDL_Mixer Version 1.2.9

Is there any way to change that behavior?

Christian

Sounds a lot like what I noticed in SDL_Image. I fixed it by coding the IMG_Init and IMG_Quit
routines to hold a reference to the DLLs. If you look at how they’re implemented, you should
be able to do something similar for SDL_Mixer without much trouble.>----- Original Message ----

From: Christian Meyer
Subject: [SDL] SDL_Mixer, loading and unloading ogg dlls erverytime an ogg file is loaded

Hi!

Why is SDL_Mixer loading and unloading the ogg libraries erverytime a file is loaded with
Mix_LoadWAV?

The libraries libvorbisfile-3.dll libvorbis-0.dll and libogg-0.dll are loaded and unloaded every
time. This makes loading several sound file much slower. I am using SDL_Mixer Version
1.2.9

Is there any way to change that behavior?

Christian

Will this be changed some day? Since my project is open source, I don’t
want to compile a modified sdl binary for the users…

Hi,

if this is not a bug, this is changed in the current release. See
http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_9.html#SEC9 for
MIX_init()On Thu, 14 Jan 2010 12:41:51 +0100, Christian Meyer wrote:

Will this be changed some day? Since my project is open source, I don’t
want to compile a modified sdl binary for the users…


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt