diff options
author | Simon Howard | 2007-01-08 22:46:05 +0000 |
---|---|---|
committer | Simon Howard | 2007-01-08 22:46:05 +0000 |
commit | 04e809fb794f8371ea3dd9015145ca2a35ad77a0 (patch) | |
tree | a4673fa0598e5e1617de8844aa7e362ec9563db6 | |
parent | 88240aec241381721f47df3fae0abb7ede07aa35 (diff) | |
download | chocolate-doom-04e809fb794f8371ea3dd9015145ca2a35ad77a0.tar.gz chocolate-doom-04e809fb794f8371ea3dd9015145ca2a35ad77a0.tar.bz2 chocolate-doom-04e809fb794f8371ea3dd9015145ca2a35ad77a0.zip |
More helpful SDL_mixer error messages.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 827
-rw-r--r-- | src/i_sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i_sound.c b/src/i_sound.c index ee0ad57b..405cbfa2 100644 --- a/src/i_sound.c +++ b/src/i_sound.c @@ -522,7 +522,7 @@ I_InitSound() if (Mix_OpenAudio(22050, AUDIO_S16LSB, 2, 1024) < 0) { - fprintf(stderr, "Error initialising SDL_mixer: %s\n", SDL_GetError()); + fprintf(stderr, "Error initialising SDL_mixer: %s\n", Mix_GetError()); return; } @@ -707,7 +707,7 @@ void *I_RegisterSong(void *data, int len) { // Failed to load - fprintf(stderr, "Error loading midi\n"); + fprintf(stderr, "Error loading midi: %s\n", Mix_GetError()); } // remove file now |