Functions for managing file renderers and triggering the rendering.
More...
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 real-time events (for example from an external sequencer or a MIDI controller) to a file, please have a look at the file
Audio Driver instead.
◆ delete_fluid_file_renderer()
Close file and destroy a file renderer object.
- Parameters
-
- Since
- 1.1.0
◆ fluid_file_renderer_process_block()
Write period_size samples to file.
- Parameters
-
dev | File renderer instance |
- Returns
- FLUID_OK or FLUID_FAILED if an error occurred
- Since
- 1.1.0
◆ fluid_file_set_encoding_quality()
Set vbr encoding quality (only available with libsndfile support)
- Parameters
-
dev | File renderer object. |
q | The encoding quality, see libsndfile documentation of SFC_SET_VBR_ENCODING_QUALITY |
- Returns
- FLUID_OK if the quality has been successfully set, FLUID_FAILED otherwise
- Since
- 1.1.7
◆ new_fluid_file_renderer()
Create a new file renderer and open the file.
- Parameters
-
synth | The synth that creates audio data. |
- Returns
- the new object, or NULL on failure
- Note
- Available file types and formats depends on if libfluidsynth was built with libsndfile support or not. If not then only RAW 16 bit output is supported.
Uses the following settings from the synth object:
- Since
- 1.1.0