Hello, I’m making this thread because i’ve a really annoying problem.
I’m making a game using sdl, everything works, except SDL2_mixer, when i try to initialise sdl2_mixer with any format, i always get the error " [format] support not available" so for instance, no ogg support or no mp3 support.
this is my initialisation script
///Checks if the SDL is correctly initialised if (SDL_Init(SDL_INIT_EVERYTHING)) { cout << "An error occured while initializing SDL : " << SDL_GetError() << endl; SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "SDL error", (string("An error occured while initialising SDL : ") + string(SDL_GetError())).c_str(), nullptr); isRunning = false; return -1; } if (TTF_Init() ) { cout << "An error occured while initialising SDL_TTF : " << TTF_GetError() << endl; SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "SDL_ttf error", (string("An error occured while initialising SDL_ttf : ") + string(TTF_GetError())).c_str(), nullptr); isRunning = false; return -1; } if (!IMG_Init(IMG_INIT_PNG)) { cout << "An error occured while initialising SDL_IMG : " << IMG_GetError() << endl; SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "SDL_IMG error", (string("An error occured while initialising SDL_IMG : ") + string(IMG_GetError())).c_str(), nullptr); isRunning = false; return -1; } int flag = MIX_INIT_OGG; int truc = 0; if (flag != (truc = Mix_Init(flag))) { cout << "An error occured while initialising SDL_mixer : " << Mix_GetError() << endl; SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "SDL_mixer error", (string("An error occured while initialising SDL_mixer : ") + string(Mix_GetError())).c_str(), nullptr); isRunning = false; return -1; }
all the dll are in the directory
what could be causing this problem ?