forked from len0rd/rockbox
Sound improvements for rockboy - players now sync the sound (The gigabeat now plays at a steady 60 fps as long as the frameskip is set properly). If a new sample is not available a blank buffer is used. All devices use 44.1 kHz for gameboy sound now so no more high pitched sounds. Added a screen rotation option. Removed unscaled code for devices with a screensize smaller than the gameboy. All buttons are now configurable. Scroll wheel devices still have button configuration problems though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13698 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16ca78db03
commit
78c45530ff
10 changed files with 345 additions and 281 deletions
|
|
@ -35,7 +35,7 @@ void emu_run(void)
|
|||
/*void *timer = sys_timer();*/
|
||||
int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick;
|
||||
|
||||
setvidmode(options.fullscreen);
|
||||
setvidmode();
|
||||
vid_begin();
|
||||
lcd_begin();
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
|
|
@ -49,9 +49,19 @@ void emu_run(void)
|
|||
emu_step();
|
||||
|
||||
rtc_tick(); /* RTC support not implemented */
|
||||
|
||||
if(options.sound || !plugbuf)
|
||||
|
||||
if (options.sound || !plugbuf)
|
||||
{
|
||||
sound_mix();
|
||||
pcm_submit();
|
||||
}
|
||||
else
|
||||
{
|
||||
/* delay = framelen - sys_elapsed(timer);
|
||||
sys_sleep(delay);
|
||||
sys_elapsed(timer);
|
||||
*/
|
||||
}
|
||||
|
||||
doevents();
|
||||
vid_begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue