mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
simplify fluid_synth_mixer_get_mapping()
This commit is contained in:
parent
77abe1a9f5
commit
373644908c
1 changed files with 2 additions and 9 deletions
|
@ -7468,15 +7468,8 @@ fluid_synth_mixer_get_mapping(fluid_synth_t *synth,
|
|||
{
|
||||
/*fx unit mapped to chan */
|
||||
int fxunit_idx = synth->channel[chan]->mapping_to_fx;
|
||||
if(fxunit_idx >= 0)
|
||||
{
|
||||
fluid_rvoice_mixer_t *mixer = synth->eventhandler->mixer;
|
||||
*out_from_fx = fluid_rvoice_mixer_get_fx_out_mapping(mixer, fxunit_idx);
|
||||
}
|
||||
else
|
||||
{
|
||||
*out_from_fx = -1; /* there is no fx unit mapped to chan */
|
||||
}
|
||||
fluid_rvoice_mixer_t *mixer = synth->eventhandler->mixer;
|
||||
*out_from_fx = fluid_rvoice_mixer_get_fx_out_mapping(mixer, fxunit_idx);
|
||||
}
|
||||
|
||||
FLUID_API_RETURN(FLUID_OK);
|
||||
|
|
Loading…
Reference in a new issue