comparison render_sdl.c @ 409:c1bddeadc566

Process events in vgm player so that quitting works
author Mike Pavone <pavone@retrodev.com>
date Mon, 17 Jun 2013 19:34:47 -0700
parents c26e48a93fa3
children 36fbbced25c2
comparison
equal deleted inserted replaced
408:a13a83934ba3 409:c1bddeadc566
364 frame_counter = 0; 364 frame_counter = 0;
365 }*/ 365 }*/
366 return ret; 366 return ret;
367 } 367 }
368 368
369 void process_events()
370 {
371 SDL_Event event;
372 while(SDL_PollEvent(&event)) {
373 handle_event(&event);
374 }
375 }
376
369 void render_wait_psg(psg_context * context) 377 void render_wait_psg(psg_context * context)
370 { 378 {
371 SDL_LockMutex(audio_mutex); 379 SDL_LockMutex(audio_mutex);
372 while (current_psg != NULL) { 380 while (current_psg != NULL) {
373 SDL_CondWait(psg_cond, audio_mutex); 381 SDL_CondWait(psg_cond, audio_mutex);