From 58ac31761acec1d3511247f84a5bed3c63572821 Mon Sep 17 00:00:00 2001 From: riccardom Date: Fri, 16 Jan 2009 19:52:08 +0000 Subject: [PATCH] This is more useful not commented, desmume handles the error fine. --- desmume/src/sndsdl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/desmume/src/sndsdl.cpp b/desmume/src/sndsdl.cpp index ca238cd62..4f2c8bd34 100644 --- a/desmume/src/sndsdl.cpp +++ b/desmume/src/sndsdl.cpp @@ -73,9 +73,8 @@ static void MixAudio(void *userdata, Uint8 *stream, int len) { int SNDSDLInit(int buffersize) { - SDL_InitSubSystem(SDL_INIT_AUDIO); -// if (SDL_InitSubSystem(SDL_INIT_AUDIO) != 0); -// return -1; + if (SDL_InitSubSystem(SDL_INIT_AUDIO) != 0) + return -1; audiofmt.freq = 44100; audiofmt.format = AUDIO_S16SYS;