libfluidsynth  1.1.2
Typedefs
audio.h File Reference

Functions for audio driver output. More...

Typedefs

typedef int(* fluid_audio_func_t )(void *data, int len, int nin, float **in, int nout, float **out)
 Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing before the audio is sent to the driver.

Detailed Description

Functions for audio driver output.


Typedef Documentation

typedef int(* fluid_audio_func_t)(void *data, int len, int nin, float **in, int nout, float **out)

Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing before the audio is sent to the driver.

This function is responsible for rendering the audio to the buffers.

Parameters:
dataThe user data parameter as passed to new_fluid_audio_driver2().
lenLength of the audio in frames.
ninCount of buffers in 'in'
inNot used currently
noutCount of arrays in 'out' (i.e., channel count)
outOutput buffers, one for each channel
Returns:
Should return 0 on success, non-zero if an error occured.