Actually PCM frequency limit

This commit is contained in:
cam900 2022-03-08 00:43:16 +09:00
parent 65149a466f
commit 26470d594e

View file

@ -669,7 +669,7 @@ int DivPlatformX1_010::dispatch(DivCommand c) {
break;
case DIV_CMD_SAMPLE_FREQ:
if (chan[c.chan].pcm) {
chan[c.chan].freq=c.value&0xff;
chan[c.chan].freq=MAX(1,c.value&0xff);
chWrite(c.chan,2,chan[c.chan].freq&0xff);
if (chRead(c.chan,0)&1) {
refreshControl(c.chan);