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. | |
Functions | |
FLUIDSYNTH_API fluid_audio_driver_t * | new_fluid_audio_driver (fluid_settings_t *settings, fluid_synth_t *synth) |
Create a new audio driver. | |
FLUIDSYNTH_API fluid_audio_driver_t * | new_fluid_audio_driver2 (fluid_settings_t *settings, fluid_audio_func_t func, void *data) |
Create a new audio driver. | |
FLUIDSYNTH_API void | delete_fluid_audio_driver (fluid_audio_driver_t *driver) |
Deletes an audio driver instance. | |
FLUIDSYNTH_API fluid_file_renderer_t * | new_fluid_file_renderer (fluid_synth_t *synth) |
Create a new file renderer and open the file. | |
FLUIDSYNTH_API int | fluid_file_renderer_process_block (fluid_file_renderer_t *dev) |
Write period_size samples to file. | |
FLUIDSYNTH_API void | delete_fluid_file_renderer (fluid_file_renderer_t *dev) |
Close file and destroy a file renderer object. |
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.
data | The user data parameter as passed to new_fluid_audio_driver2(). | |
len | Length of the audio in frames. | |
nin | Count of buffers in 'in' | |
in | Not used currently | |
nout | Count of arrays in 'out' (i.e., channel count) | |
out | Output buffers, one for each channel |
FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver | ( | fluid_settings_t * | settings, | |
fluid_synth_t * | synth | |||
) |
Create a new audio driver.
settings | Configuration settings used to select and create the audio driver. | |
synth | Synthesizer instance for which the audio driver is created for. |
FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver2 | ( | fluid_settings_t * | settings, | |
fluid_audio_func_t | func, | |||
void * | data | |||
) |
Create a new audio driver.
settings | Configuration settings used to select and create the audio driver. | |
func | Function called to fill audio buffers for audio playback | |
data | User defined data pointer to pass to 'func' |
NOTE: Not as efficient as new_fluid_audio_driver().
FLUIDSYNTH_API void delete_fluid_audio_driver | ( | fluid_audio_driver_t * | driver | ) |
Deletes an audio driver instance.
driver | Audio driver instance to delete |
FLUIDSYNTH_API fluid_file_renderer_t* new_fluid_file_renderer | ( | fluid_synth_t * | synth | ) |
Create a new file renderer and open the file.
synth | The synth that creates audio data. |
Uses the following settings from the synth object:
FLUIDSYNTH_API int fluid_file_renderer_process_block | ( | fluid_file_renderer_t * | dev | ) |
Write period_size samples to file.
dev | File renderer instance |
FLUIDSYNTH_API void delete_fluid_file_renderer | ( | fluid_file_renderer_t * | dev | ) |
Close file and destroy a file renderer object.
dev | File renderer object. |