mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-19 17:12:10 +00:00
Merge pull request #5267 from rtissera/modmixfix
Fix MOD support not mixing core provided audio stream
This commit is contained in:
commit
988468f691
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user