"ERROR: Couldn't load music Out of sample handles to load sample"?

“ERROR: Couldn’t load music Out of sample handles to load sample”

Hi,

I am using SDL 1.2 with SDL_Mixer and MOD music file format.

I tried adding another MOD music to my project,
but I get this error in terminal:---------------------------------------------------------------------------------------------
ERROR: Couldn’t load music Out of sample handles to load sample

Anyone know how to fix this?

Thanks!

Jesse "JeZ+Lee"
16BitSoft
Video Game Design Studio
www.16BitSoft.com

Hello !

“ERROR: Couldn’t load music Out of sample handles to load sample”

Hi,

I am using SDL 1.2 with SDL_Mixer and MOD music file format.

I tried adding another MOD music to my project,
but I get this error in terminal:

ERROR: Couldn’t load music Out of sample handles to load sample

This is an error message coming from MikMod.

  1. Have you tried to add a different module instead of this one ?
  2. Have you tried to play the module with MikMod on the commandline,
    to make sure that MikMod would normally load and play it correctly ?

CU

Hi,

I think I have reached some limit to the number of MOD musics I can load?
Got up to about 20 MOD musics being loaded at program start,
and now can’t add anymore?

Anyone have any idea on how to solve this?
Thanks!

Jesse "JeZ+Lee"
16BitSoft
Video Game Design Studio
www.16BitSoft.comOn 07/11/2011 11:43 AM, Torsten Giebl wrote:

Hello !

“ERROR: Couldn’t load music Out of sample handles to load sample”

Hi,

I am using SDL 1.2 with SDL_Mixer and MOD music file format.

I tried adding another MOD music to my project,
but I get this error in terminal:

ERROR: Couldn’t load music Out of sample handles to load sample

This is an error message coming from MikMod.

  1. Have you tried to add a different module instead of this one ?
  2. Have you tried to play the module with MikMod on the commandline,
    to make sure that MikMod would normally load and play it correctly ?

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello !

I think I have reached some limit to the number of MOD musics I can load?
Got up to about 20 MOD musics being loaded at program start,
and now can’t add anymore?

I just tried to load the same module a few times in my programm
and got the same error message like you, so there really is a "Nr. of samples"
limit in MikMod. (37x worked, 38x failed)

It seems MikMod adds all the samples from the loaded modules to a sample pool.

Anyone have any idea on how to solve this?

The easiest solution is to just load the musics you need right now and free them
as soon as they are not needed any longer. When you are in the game, you probably do not
need the menu music or the credits music.

Another way is to load them to a memory area, copying the file 1:1 from disk to the memory,
without using SDL_mixer and the using SDL_mixer + RWops to load it from the memory and then free
it when you do not need it anymore. That way you can load all the modules into memory on start,
but do not overflow MikMods sample pool.

CU