Skip to content

fluid_synth_noteoff() return value #1034

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

You must be logged in to vote

Currently there is no way to distinguish. By default, noteoff() returns FLUID_FAILED, unless it found a matching voice, in which case it returns FLUID_OK from here:

status = FLUID_OK;

On the other hand, the only real errors that could occur during noteoff are:

  • synth is NULL
  • key is out of range
  • chan is out of range
  • chan specifies a channel that has been disabled due to a previous call to fluid_synth_set_basic_channel()

You can easily avoid the first three error sources. Not sure if you're using the basic channels feature; if not, you can ignore that as well. Then you know that FLUID_FAILED is because it did…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nandlab
Comment options

Answer selected by nandlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants