Merge pull request #399 from cam900/es5506_alt

Add ES5506 support and Various enhancement for sample, etc
This commit is contained in:
tildearrow 2023-02-06 01:01:07 -05:00 committed by GitHub
commit 4f33f9d815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1971 additions and 15 deletions

View file

@ -2515,6 +2515,8 @@ int DivEngine::getEffectiveSampleRate(int rate) {
return (48828*MIN(128,(rate*128/48828)))/128;
case DIV_SYSTEM_X1_010:
return (31250*MIN(255,(rate*16/31250)))/16; // TODO: support variable clock case
case DIV_SYSTEM_ES5506:
return (31250*MIN(131071,(rate*2048/31250)))/2048; // TODO: support variable clock, channel limit case
default:
break;
}