Skip to content

Hi! Can you give me an example on how to use the "fluid_synth_write_s16" function? #1493

Answered by derselbst
SlackerNReckless asked this question in Q&A
Discussion options

You must be logged in to vote

So you want to do something like this: https://www.fluidsynth.org/api/FileRenderer.html

But instead of fluid_file_renderer_process_block(renderer) you would call fluid_synth_write_s16(). And yes, the rendering buffer is an array of 16 bit signed integers. That's why the rendering function is called s16 ;)

The length of that buffer is up to you. But using a multiple of fluid_synth_get_internal_bufsize() will work most efficient.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@SlackerNReckless
Comment options

@derselbst
Comment options

Answer selected by derselbst
@spessasus
Comment options

@SlackerNReckless
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants