X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2Fplat.c;fp=platform%2Fwin32%2Fplat.c;h=8abb0626ffde90e30d28e30507e624b2fccf5776;hb=6311a3baf533d4a034e51dfe38e8cb213a1bf442;hp=a9cceb7965b52fde71ca05de462931081dc85646;hpb=075672bf9f028490174bd3fbebe957a47a10b09d;p=picodrive.git diff --git a/platform/win32/plat.c b/platform/win32/plat.c index a9cceb7..8abb062 100644 --- a/platform/win32/plat.c +++ b/platform/win32/plat.c @@ -131,7 +131,7 @@ void pemu_sound_start(void) { int ret; - PsndOut = NULL; + PicoIn.sndOut = NULL; currentConfig.EmuOpt &= ~EOPT_EXT_FRMLIMIT; // prepare sound stuff @@ -139,14 +139,14 @@ void pemu_sound_start(void) { PsndRerate(0); - ret = DSoundInit(FrameWnd, PsndRate, (PicoIn.opt & 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; } }