mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 08:25:05 -05:00
Merge branch 'master' of https://gitlab.com/drummyfish/anarch
This commit is contained in:
commit
16e47a9afe
@ -342,8 +342,8 @@ void SFG_playSound(uint8_t soundIndex, uint8_t volume)
|
||||
|
||||
for (int i = 0; i < SFG_SFX_SAMPLE_COUNT; ++i)
|
||||
{
|
||||
audioBuff[pos] =
|
||||
(128 - SFG_GET_SFX_SAMPLE(soundIndex,i)) * volumeScale;
|
||||
audioBuff[pos] = mixSamples(audioBuff[pos],
|
||||
(128 - SFG_GET_SFX_SAMPLE(soundIndex,i)) * volumeScale);
|
||||
|
||||
pos = (pos < SFG_SFX_SAMPLE_COUNT - 1) ? (pos + 1) : 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user