Mercurial > hg > dmlib
comparison dmsimple.c @ 41:780300a8d322
Move SDL_PauseAudio(0) to the "engine" instead of the demo code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Sep 2012 19:13:51 +0300 |
parents | a239b7d4e13b |
children | f47011b06d5c |
comparison
equal
deleted
inserted
replaced
40:a239b7d4e13b | 41:780300a8d322 |
---|---|
267 | 267 |
268 // Final initializations | 268 // Final initializations |
269 if ((err = demoGlobalInit()) != DMERR_OK) | 269 if ((err = demoGlobalInit()) != DMERR_OK) |
270 goto error_exit; | 270 goto error_exit; |
271 | 271 |
272 SDL_PauseAudio(0); | |
272 engine.startTime = SDL_GetTicks(); | 273 engine.startTime = SDL_GetTicks(); |
273 | 274 |
274 while (!engine.exitFlag) | 275 while (!engine.exitFlag) |
275 { | 276 { |
276 while (SDL_PollEvent(&engine.event)) | 277 while (SDL_PollEvent(&engine.event)) |