Merge pull request #5267 from rtissera/modmixfix

Fix MOD support not mixing core provided audio stream
This commit is contained in:
Twinaphex 2017-08-08 18:52:03 +02:00 committed by GitHub
commit 988468f691

View File

@ -781,7 +781,7 @@ again:
samplei = *pcm++ * volume;
samplef = (float)((int)samplei + 32768) / 65535.0f;
samplef = samplef * 2.0f - 1.0f;
*buffer++ = samplef;
*buffer++ += samplef;
}
buf_free -= voice->types.mod.samples;
@ -795,7 +795,7 @@ again:
samplei = *pcm++ * volume;
samplef = (float)((int)samplei + 32768) / 65535.0f;
samplef = samplef * 2.0f - 1.0f;
*buffer++ = samplef;
*buffer++ += samplef;
}
voice->types.mod.position += buf_free;