fix µ-law encoding

This commit is contained in:
tildearrow 2023-08-12 03:42:10 -05:00
parent 06243c9d9d
commit 320d965f78
2 changed files with 5 additions and 4 deletions

View file

@ -448,7 +448,7 @@ void DivPlatformC140::renderSamples(int sysID) {
} else {
if (s->depth==DIV_SAMPLE_DEPTH_MULAW) {
for (unsigned int i=0; i<length; i++) {
sampleMem[i+(memPos/sizeof(short))]=(s->dataMuLaw[i]<<8);
sampleMem[i+(memPos/sizeof(short))]=((s->dataMuLaw[i])<<8);
}
} else {
memcpy(sampleMem+(memPos/sizeof(short)),s->data16,length);