mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-05-31 01:00:53 +00:00
Format fluid_synth_write_*()
This commit is contained in:
parent
988ec6d799
commit
171f3396a4
1 changed files with 22 additions and 14 deletions
|
@ -3856,7 +3856,11 @@ fluid_synth_write_float_LOCAL(fluid_synth_t *synth, int len,
|
|||
n = synth->curmax - cur;
|
||||
|
||||
/* keep track of emitted samples */
|
||||
if (n > size) n = size;
|
||||
if(n > size)
|
||||
{
|
||||
n = size;
|
||||
}
|
||||
|
||||
size -= n;
|
||||
|
||||
/* update pointers to current position */
|
||||
|
@ -4011,7 +4015,11 @@ fluid_synth_write_s16(fluid_synth_t *synth, int len,
|
|||
n = synth->curmax - cur;
|
||||
|
||||
/* keep track of emitted samples */
|
||||
if (n > size) n = size;
|
||||
if(n > size)
|
||||
{
|
||||
n = size;
|
||||
}
|
||||
|
||||
size -= n;
|
||||
|
||||
/* update pointers to current position */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue