move more globals to PicoInterface
[picodrive.git] / platform / gp2x / emu.c
index 3b3a234..7e9a132 100644 (file)
@@ -692,7 +692,7 @@ void pemu_sound_start(void)
        {\r
                soc = soc_detect();\r
                if (soc == SOCID_POLLUX) {\r
-                       PsndRate = pollux_get_real_snd_rate(PsndRate);\r
+                       PicoIn.sndRate = pollux_get_real_snd_rate(PicoIn.sndRate);\r
                        PsndRerate(Pico.m.frame_count ? 1 : 0);\r
                }\r
 \r
@@ -707,10 +707,10 @@ void pemu_sound_stop(void)
        int i;\r
 \r
        /* get back from Pollux pain */\r
-       PsndRate += 1000;\r
+       PicoIn.sndRate += 1000;\r
        for (i = 0; i < ARRAY_SIZE(sound_rates); i++) {\r
-               if (PsndRate >= sound_rates[i]) {\r
-                       PsndRate = sound_rates[i];\r
+               if (PicoIn.sndRate >= sound_rates[i]) {\r
+                       PicoIn.sndRate = sound_rates[i];\r
                        break;\r
                }\r
        }\r