Add OPL4/MultiPCM 12-bit PCM support

This commit is contained in:
cam900 2024-08-16 20:45:40 +09:00
parent 2c417811b3
commit 16ca40e0d2
6 changed files with 54 additions and 7 deletions

View file

@ -3197,6 +3197,9 @@ void DivPlatformOPL::renderSamples(int sysID) {
case DIV_SAMPLE_DEPTH_8BIT:
length=MIN(65535,s->getLoopEndPosition(DIV_SAMPLE_DEPTH_8BIT));
break;
case DIV_SAMPLE_DEPTH_12BIT:
length=MIN(98303,s->getLoopEndPosition(DIV_SAMPLE_DEPTH_12BIT));
break;
case DIV_SAMPLE_DEPTH_16BIT:
length=MIN(131070,s->getLoopEndPosition(DIV_SAMPLE_DEPTH_16BIT));
break;
@ -3239,7 +3242,9 @@ void DivPlatformOPL::renderSamples(int sysID) {
case DIV_SAMPLE_DEPTH_8BIT:
bitDepth=0;
break;
// TODO: 12 bit PCM
case DIV_SAMPLE_DEPTH_12BIT:
bitDepth=1;
break;
case DIV_SAMPLE_DEPTH_16BIT:
bitDepth=2;
break;