mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
sound, add native rate mode, change resampling
This commit is contained in:
parent
d26d4c2965
commit
882f697ad4
11 changed files with 90 additions and 167 deletions
|
@ -275,7 +275,7 @@ 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;
|
||||
PicoIn.sndRate = strtoul(val, &tmp, 10);
|
||||
if (PicoIn.sndRate < 8000 || PicoIn.sndRate > 44100)
|
||||
if (PicoIn.sndRate < 8000 || PicoIn.sndRate > 53267)
|
||||
PicoIn.sndRate = 22050;
|
||||
if (*tmp == 'H' || *tmp == 'h') tmp++;
|
||||
if (*tmp == 'Z' || *tmp == 'z') tmp++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue