|
libfluidsynth 2.5.4
|
Functions for managing file renderers and triggering the rendering. More...
Lifecycle Functions for File Renderer_linebr@{ | |
| fluid_file_renderer_t * | new_fluid_file_renderer (fluid_synth_t *synth) |
| Create a new file renderer and open the file. | |
| void | delete_fluid_file_renderer (fluid_file_renderer_t *dev) |
| Close file and destroy a file renderer object. | |
Functions | |
| int | fluid_file_renderer_process_block (fluid_file_renderer_t *dev) |
| Write period_size samples to file. | |
| int | fluid_file_set_encoding_quality (fluid_file_renderer_t *dev, double q) |
| Set vbr encoding quality (only available with libsndfile support). | |
Functions for managing file renderers and triggering the rendering.
The file renderer is only used to render a MIDI file to audio as fast as possible. Please see Fast file renderer for non-realtime MIDI file rendering for a full example.
If you are looking for a way to write audio generated from realtime events (for example from an external sequencer or a MIDI controller) to a file, please have a look at the file Audio Driver instead.
| void delete_fluid_file_renderer | ( | fluid_file_renderer_t * | dev | ) |
Close file and destroy a file renderer object.
| dev | File renderer object. |
| int fluid_file_renderer_process_block | ( | fluid_file_renderer_t * | dev | ) |
Write period_size samples to file.
| dev | File renderer instance |
| int fluid_file_set_encoding_quality | ( | fluid_file_renderer_t * | dev, |
| double | q ) |
Set vbr encoding quality (only available with libsndfile support).
| dev | File renderer object. |
| q | The encoding quality, see libsndfile documentation of SFC_SET_VBR_ENCODING_QUALITY |
| fluid_file_renderer_t * new_fluid_file_renderer | ( | fluid_synth_t * | synth | ) |
Create a new file renderer and open the file.
| Synthesizer | The synth that creates audio data. |
Uses the following settings from the synth object: