~ubuntu-branches/ubuntu/precise/gnuboy/precise

« back to all changes in this revision

Viewing changes to emu.c

  • Committer: Bazaar Package Importer
  • Author(s): Davide Puricelli (evo)
  • Date: 2002-04-22 13:54:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20020422135401-tppfha4rxwoeq06h
Tags: 1.0.3-1
New upstream version, closes: #143976.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
                vid_end();
80
80
                rtc_tick();
81
81
                sound_mix();
82
 
                delay = pcm_submit() ? 0 : framelen - sys_elapsed(timer);
83
 
                /* printf("%d\n", delay); */
84
 
                sys_sleep(delay);
85
 
                sys_elapsed(timer);
 
82
                if (!pcm_submit())
 
83
                {
 
84
                        delay = framelen - sys_elapsed(timer);
 
85
                        sys_sleep(delay);
 
86
                        sys_elapsed(timer);
 
87
                }
86
88
                doevents();
87
89
                vid_begin();
88
90
                if (framecount) { if (!--framecount) die("finished\n"); }