void pemu_prep_defconfig(void)
{
memset(&defaultConfig, 0, sizeof(defaultConfig));
- defaultConfig.s_PicoOpt|= POPT_6BTN_PAD; // for xmen proto
defaultConfig.s_PicoCDBuffers = 0;
defaultConfig.Frameskip = 0;
}
void pemu_loop_prep(void)
{
PicoDrawSetOutFormat(PDF_RGB555, 1);
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);
+ PicoDrawSetOutBuf(g_screen_ptr, g_screen_ppitch * 2);
pemu_sound_start();
}
static void update_sound(int len)
{
/* avoid writing audio when lagging behind to prevent audio lag */
- if (PicoSkipFrame != 2)
+ if (PicoIn.skipFrame != 2)
DSoundUpdate(sndbuff, (currentConfig.EmuOpt & EOPT_NO_FRMLIMIT) ? 0 : 1);
}
{
int ret;
- PsndOut = NULL;
+ PicoIn.sndOut = NULL;
currentConfig.EmuOpt &= ~EOPT_EXT_FRMLIMIT;
// prepare sound stuff
{
PsndRerate(0);
- ret = DSoundInit(FrameWnd, PsndRate, (PicoOpt & POPT_EN_STEREO) ? 1 : 0, PsndLen);
+ ret = DSoundInit(FrameWnd, PicoIn.sndRate, (PicoIn.opt & POPT_EN_STEREO) ? 1 : 0, Pico.snd.len);
if (ret != 0) {
lprintf("dsound init failed\n");
return;
}
- PsndOut = (void *)sndbuff;
- PicoWriteSound = update_sound;
+ PicoIn.sndOut = (void *)sndbuff;
+ PicoIn.writeSound = update_sound;
currentConfig.EmuOpt |= EOPT_EXT_FRMLIMIT;
}
}