update example fluidsynth_fx.c

This commit is contained in:
derselbst 2018-06-23 14:34:30 +02:00
parent fd27e15746
commit 550f853509

View file

@ -26,16 +26,16 @@ struct fx_data_t {
/* This function implements the callback function of the audio driver
* (see new_fluid_audio_driver2 below). The data argument is a pointer
* to your private data structure. 'len' is the number of samples in
* the buffers. 'nin' and 'nout' are the number of input and output
* audio buffers. 'in' and 'out' are an array of float buffers with
* the samples. The audio driver fills the 'in' buffers the incoming
* audio. The 'out' buffers should be filled by your function. The
* 'out' buffers will be sent to the audio output of the sound card.
* to your private data structure. 'len' is the number of audio frames
* in the buffers. 'nfx' and 'nout' are the number of input and output
* audio buffers. 'fx' and 'out' are arrays of float buffers containing
* the audio. The audio driver fills zero-initializes those buffers.
* You are responsible for filling up those buffers, as the result will
* be sent to the sound card. This is usually done by asking the synth
* to fill those buffers appropriately using fluid_synth_process()
*
* IMPORTANT NOTE: The API was designed to be generic but none of the
* audio drivers currently handles audio input. Either 'nin' will be
* zero, or the buffers will be filled with zero samples.
* NOTE: The API was designed to be generic. Audio driver may fill the
* buffers with audio input from the soundcard, rather than zeros.
*/
int fx_function(void* data, int len,
int nfx, float** fx,