#include <stdio.h>
#include <string.h>
#include <fluidsynth.h>
int main()
{
enum { SAMPLES = 512 };
{
float left[SAMPLES], right[SAMPLES];
float *dry[1 * 2], *fx[1 * 2];
memset(left, 0, sizeof(left));
memset(right, 0, sizeof(right));
dry[0] = left;
dry[1] = right;
fx[0] = left;
fx[1] = right;
{
puts("oops");
}
{
puts("oops");
}
}
{
{
puts("oops");
}
}
{
float samp_buf[SAMPLES * (n_aud_chan + n_fx_chan) * 2];
float *dry[n_aud_chan * 2], *fx[n_fx_chan * 2];
for(int i = 0; i < n_aud_chan * 2; i++)
{
dry[i] = &samp_buf[i * SAMPLES];
}
for(int i = 0; i < n_fx_chan * 2; i++)
{
fx[i] = &samp_buf[n_aud_chan * 2 * SAMPLES + i * SAMPLES];
}
memset(samp_buf, 0, sizeof(samp_buf));
{
puts("oops");
}
}
return 0;
}
int fluid_synth_process(fluid_synth_t *synth, int len, int nfx, float *fx[], int nout, float *out[])
Synthesize floating point audio to stereo audio channels (implements the default interface fluid_audi...
Definition: fluid_synth.c:4183
#define FLUID_FAILED
Value that indicates failure, used by most libfluidsynth functions.
Definition: misc.h:65
int fluid_synth_count_effects_groups(fluid_synth_t *synth)
Get the total number of allocated effects units.
Definition: fluid_synth.c:7043
int fluid_synth_count_effects_channels(fluid_synth_t *synth)
Get the total number of allocated effects channels.
Definition: fluid_synth.c:7025
int fluid_synth_count_audio_channels(fluid_synth_t *synth)
Get the total count of audio channels.
Definition: fluid_synth.c:6991