mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-04-29 17:39:33 +02:00
move more globals to PicoInterface
similar reasons as before
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user