Mercurial > hg > dmlib
comparison dmsimple.c @ 571:8a98037c5cf7
Work with no sound as well.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 17 Feb 2013 08:26:39 +0200 |
parents | e1c984404b6b |
children | 14640d0688d3 |
comparison
equal
deleted
inserted
replaced
570:a26636faa6b7 | 571:8a98037c5cf7 |
---|---|
243 engine.optAfmt.callback = engineAudioCallback; | 243 engine.optAfmt.callback = engineAudioCallback; |
244 | 244 |
245 if (SDL_OpenAudio(&engine.optAfmt, NULL) < 0) | 245 if (SDL_OpenAudio(&engine.optAfmt, NULL) < 0) |
246 { | 246 { |
247 dmError("Couldn't open SDL audio: %s\n", SDL_GetError()); | 247 dmError("Couldn't open SDL audio: %s\n", SDL_GetError()); |
248 goto error_exit; | 248 // goto error_exit; |
249 } | 249 } |
250 | 250 |
251 // Initialize SDL video | 251 // Initialize SDL video |
252 if (engine.demoInitPreVideo != NULL && | 252 if (engine.demoInitPreVideo != NULL && |
253 (err = engine.demoInitPreVideo(&engine)) != DMERR_OK) | 253 (err = engine.demoInitPreVideo(&engine)) != DMERR_OK) |