mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Update fluidsynth
Fix potential crashes in case fluid-synth runs into an OOM error, and address a const-cast compiler warning. Switch to track github repo (instead of sf.net git)
This commit is contained in:
parent
0650e0d3fd
commit
1dd4aab0b4
5 changed files with 20 additions and 6 deletions
|
|
@ -2544,6 +2544,12 @@ fluid_synth_process(fluid_synth_t* synth, int len, int nin, float** in,
|
|||
int i;
|
||||
left = FLUID_ARRAY(float*, nout/2);
|
||||
right = FLUID_ARRAY(float*, nout/2);
|
||||
if ((left == NULL) || (right == NULL)) {
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory.");
|
||||
FLUID_FREE(left);
|
||||
FLUID_FREE(right);
|
||||
return FLUID_FAILED;
|
||||
}
|
||||
for(i=0; i<nout/2; i++) {
|
||||
left[i] = out[2*i];
|
||||
right[i] = out[2*i+1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue