move more globals to PicoInterface
[picodrive.git] / platform / common / config_file.c
index 2d1186d..1b5c517 100644 (file)
@@ -259,9 +259,9 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
 
                case MA_OPT_SOUND_QUALITY:
                        if (strcasecmp(var, "Sound Quality") != 0) return 0;
-                       PsndRate = strtoul(val, &tmp, 10);
-                       if (PsndRate < 8000 || PsndRate > 44100)
-                               PsndRate = 22050;
+                       PicoIn.sndRate = strtoul(val, &tmp, 10);
+                       if (PicoIn.sndRate < 8000 || PicoIn.sndRate > 44100)
+                               PicoIn.sndRate = 22050;
                        if (*tmp == 'H' || *tmp == 'h') tmp++;
                        if (*tmp == 'Z' || *tmp == 'z') tmp++;
                        while (*tmp == ' ') tmp++;