Merge pull request #225 from cam900/ym2610b

Prepare to experimental support YM2610B and with Extended channel 3 mode, Some additions
This commit is contained in:
tildearrow 2022-03-01 23:21:46 -05:00 committed by GitHub
commit acc9b0aa57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 2243 additions and 21 deletions

View file

@ -947,7 +947,9 @@ int DivEngine::getEffectiveSampleRate(int rate) {
return 1789773/(1789773/rate);
case DIV_SYSTEM_SEGAPCM: case DIV_SYSTEM_SEGAPCM_COMPAT:
return (31250*MIN(255,(rate*255/31250)))/255;
case DIV_SYSTEM_YM2610: case DIV_SYSTEM_YM2610_EXT: case DIV_SYSTEM_YM2610_FULL: case DIV_SYSTEM_YM2610_FULL_EXT:
case DIV_SYSTEM_QSOUND:
return (24038*MIN(65535,(rate*4096/24038)))/4096;
case DIV_SYSTEM_YM2610: case DIV_SYSTEM_YM2610_EXT: case DIV_SYSTEM_YM2610_FULL: case DIV_SYSTEM_YM2610_FULL_EXT: case DIV_SYSTEM_YM2610B: case DIV_SYSTEM_YM2610B_EXT:
return 18518;
default:
break;