mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Fix MOD support not mixing core provided audio stream
This commit is contained in:
parent
b6cd19a83c
commit
5a85c53174
@ -781,7 +781,7 @@ again:
|
|||||||
samplei = *pcm++ * volume;
|
samplei = *pcm++ * volume;
|
||||||
samplef = (float)((int)samplei + 32768) / 65535.0f;
|
samplef = (float)((int)samplei + 32768) / 65535.0f;
|
||||||
samplef = samplef * 2.0f - 1.0f;
|
samplef = samplef * 2.0f - 1.0f;
|
||||||
*buffer++ = samplef;
|
*buffer++ += samplef;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf_free -= voice->types.mod.samples;
|
buf_free -= voice->types.mod.samples;
|
||||||
@ -795,7 +795,7 @@ again:
|
|||||||
samplei = *pcm++ * volume;
|
samplei = *pcm++ * volume;
|
||||||
samplef = (float)((int)samplei + 32768) / 65535.0f;
|
samplef = (float)((int)samplei + 32768) / 65535.0f;
|
||||||
samplef = samplef * 2.0f - 1.0f;
|
samplef = samplef * 2.0f - 1.0f;
|
||||||
*buffer++ = samplef;
|
*buffer++ += samplef;
|
||||||
}
|
}
|
||||||
|
|
||||||
voice->types.mod.position += buf_free;
|
voice->types.mod.position += buf_free;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user