#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;
}