From: notaz Date: Mon, 29 Oct 2007 18:16:46 +0000 (+0000) Subject: psp bugfixes, refactoring, stuff X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f2f371a6aacdb44280d6887056e7389291419a;p=libpicofe.git psp bugfixes, refactoring, stuff git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@284 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/gp2x/emu.c b/gp2x/emu.c index 954d26f..41187c5 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -682,7 +682,7 @@ void emu_Loop(void) Reset940(1, 2); Pause940(1); } - sound_rerate(Pico.m.frame_count ? 1 : 0); + PsndRerate(Pico.m.frame_count ? 1 : 0); } snd_excess_add = ((PsndRate - PsndLen*target_fps)<<16) / target_fps; printf("starting audio: %i len: %i (ex: %04x) stereo: %i, pal: %i\n", diff --git a/psp/emu.c b/psp/emu.c index 0ecbcc6..0db88ca 100644 --- a/psp/emu.c +++ b/psp/emu.c @@ -142,6 +142,7 @@ void emu_setDefaultConfig(void) currentConfig.KeyBinds[13] = 1<<5; currentConfig.KeyBinds[15] = 1<<6; currentConfig.KeyBinds[ 3] = 1<<7; + currentConfig.KeyBinds[12] = 1<<26; // switch rnd currentConfig.KeyBinds[ 8] = 1<<27; // save state currentConfig.KeyBinds[ 9] = 1<<28; // load state currentConfig.PicoCDBuffers = 0; @@ -538,7 +539,7 @@ static void sound_prepare(void) samples_made = samples_done = 0; if (PsndRate != PsndRate_old || (PicoOpt&0x0b) != (PicoOpt_old&0x0b) || Pico.m.pal != pal_old) { - sound_rerate(Pico.m.frame_count ? 1 : 0); + PsndRerate(Pico.m.frame_count ? 1 : 0); } stereo=(PicoOpt&8)>>3;