c++audiovisual-studio-2019sdl-mixer

c++ SDL_mixer error, Mix_LoadWAV_RW with NULL src


For some reason not all sounds is working. The Mix_GetError() returns this error message Mix_LoadWAV_RW with NULL src

I have 57 different sound files loaded and 8 of them is not working and they all give the same error.enter image description here

The 8 sounds that does not work is the 8 in the very bottom of the picture. It is weird that the 8 that does not work is in the bottom and not spread out. Is there a limit to how many or how many KB of sounds you can load in?


Solution

  • You just forgot to add ".wav" file extension at the end.