mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
move more globals to PicoInterface
similar reasons as before
This commit is contained in:
parent
075672bf9f
commit
6311a3baf5
27 changed files with 244 additions and 247 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue