mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
sound, minor FM filtering optimization
This commit is contained in:
parent
72c2a04a9d
commit
27b26d0478
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ static void YM2612_setup_FIR(int inrate, int outrate, int stereo)
|
||||||
mindiff = diff;
|
mindiff = diff;
|
||||||
Pico.snd.fm_fir_mul = mul;
|
Pico.snd.fm_fir_mul = mul;
|
||||||
Pico.snd.fm_fir_div = div;
|
Pico.snd.fm_fir_div = div;
|
||||||
if (abs(mindiff) <= inrate/1000) break; // below error limit
|
if (abs(mindiff) <= inrate/1000+1) break; // below error limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("FM polyphase FIR ratio=%d/%d error=%.3f%%\n",
|
printf("FM polyphase FIR ratio=%d/%d error=%.3f%%\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue