mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -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
|
@ -692,7 +692,7 @@ void pemu_sound_start(void)
|
|||
{
|
||||
soc = soc_detect();
|
||||
if (soc == SOCID_POLLUX) {
|
||||
PsndRate = pollux_get_real_snd_rate(PsndRate);
|
||||
PicoIn.sndRate = pollux_get_real_snd_rate(PicoIn.sndRate);
|
||||
PsndRerate(Pico.m.frame_count ? 1 : 0);
|
||||
}
|
||||
|
||||
|
@ -707,10 +707,10 @@ void pemu_sound_stop(void)
|
|||
int i;
|
||||
|
||||
/* get back from Pollux pain */
|
||||
PsndRate += 1000;
|
||||
PicoIn.sndRate += 1000;
|
||||
for (i = 0; i < ARRAY_SIZE(sound_rates); i++) {
|
||||
if (PsndRate >= sound_rates[i]) {
|
||||
PsndRate = sound_rates[i];
|
||||
if (PicoIn.sndRate >= sound_rates[i]) {
|
||||
PicoIn.sndRate = sound_rates[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue