mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-18 05:31:02 +00:00
fix rvoice_buffers initialization loop
This commit is contained in:
parent
8aa073b4a4
commit
f867e3b15a
1 changed files with 1 additions and 2 deletions
|
@ -416,8 +416,7 @@ fluid_rvoice_buffers_check_bufnum(fluid_rvoice_buffers_t* buffers, unsigned int
|
|||
if (bufnum >= FLUID_RVOICE_MAX_BUFS) return FLUID_FAILED;
|
||||
|
||||
for (i = buffers->count; i <= bufnum; i++) {
|
||||
buffers->bufs[bufnum].amp = 0.0f;
|
||||
buffers->bufs[bufnum].mapping = i;
|
||||
buffers->bufs[i].amp = 0.0f;
|
||||
}
|
||||
buffers->count = bufnum+1;
|
||||
return FLUID_OK;
|
||||
|
|
Loading…
Reference in a new issue