mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-04 17:06:48 +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;
|
||||
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…
Reference in New Issue
Block a user