SDL, suddenly music functionality stopped working!
The problem started with that I got a lot of errors about missing header files included from SDL_mixer.h when I attempted to compile my projects.
I looked in the directory of this file, and all header files were missing except SDL_mixer.h Resolved this by compiling and installing the base SDL library package. Programs that got recompiled and were able to play music before suddenly produced no music, but sound effects worked. However, old binaries that were compiled prior to the issue with the missing header files played music fine. What the heck is this? I get no errors, nor warnings; none at compilation, none on execution. The kernel pool (dmesg) is clean. There is also another strange issue, which perhaps has nothing to do with the first issue. x86_1$ ./fire XDM authorization key matches an existing client!Couldn't initialize SDL: Couldn't open X11 display This might be related to a bug in XDM from searching on Google. |
Quote:
Quote:
If I remember correctly, by default sdl_mixer can play only wav/voc files and support for everything else is optional. Support for ogg and mp3 files is optional and can be disabled, midi requires either timidity daemon (many modern sound cards don't support midi) or enabling timidity support within sdl_mixer, same applies to mod files. Check SDL_mixer documentation, and check for error messages. |
Quote:
This is what I'm doing: Code:
if(Mix_OpenAudio(11025, AUDIO_U8, 2, 512) < 0) { |
Quote:
Quote:
Quote:
|
Quote:
Rather silly of me to omit handling the return value, I get -- like you suggested -- "Mix_LoadMUS() failed on loading ./data/title.xm: Unrecognized music format". I have recompiled and installed: SDL-1.2.14.tar.gz SDL_gfx-2.0.20.tar.gz SDL_mixer-1.2.11.tar.gz But it doesn't seem to help. |
Quote:
Quote:
|
Now that I've finally gotten around to deal with this issue -- I guess I'll never know why it suddenly stopped working in the first place -- by recompiling and installing libmikmod and then recompiling and installing sdlmixer I'm only facing a new issue:
I get the following error when I attempt to execute my project which was previously working fine: "XDM authorization key matches an existing client!Error: Unable to init SDL: Couldn't open X11 display" I also get the same error when I try to execute a lot of other programs, many of them not my own. It seems that the error is not caused by using SDL_Mixer either, as some pure graphics demos without any audio functionality also give me this message, and when I removed all audio features from my program to try to isolate the issue it still gave that error upon execution. |
All times are GMT -5. The time now is 12:10 PM. |