OPN: apply max freq limit
This commit is contained in:
parent
eafc3078cf
commit
36eaea0fa7
4 changed files with 4 additions and 0 deletions
|
|
@ -234,6 +234,7 @@ void DivPlatformYM2610Ext::tick() {
|
|||
if (extMode) for (int i=0; i<4; i++) {
|
||||
if (opChan[i].freqChanged) {
|
||||
opChan[i].freq=parent->calcFreq(opChan[i].baseFreq,opChan[i].pitch);
|
||||
if (opChan[i].freq>262143) opChan[i].freq=262143;
|
||||
int freqt=toFreq(opChan[i].freq);
|
||||
opChan[i].freqH=freqt>>8;
|
||||
opChan[i].freqL=freqt&0xff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue