I am making a program that takes inputs trought the console, and reproduce a sound depending of the input, pretty straightforward; the problem is that apparently, the files can not load, i do not really understand how can it fail, the loading code is quite simple:
yet, that fails. I have initialized all the necesary systems (SDL_INIT_AUDIO and Mix_OpenAudio) and it shows no problems. can it be some kind of conflict between the iostream and sdl? (do not really see why, but i never really used SDL and the console at the same time).
Are you sure you're initializing SDL_Mixer in the right way? Always check the return values also, and, did you try putting in your files' absolute folder? Like, instead of Mix_LoadWAV("Anotel.wav") using Mix_LoadWAV("C:\\Anotel.wav") and copying those file to C:, just as a test.