mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +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 */
|
/*fx unit mapped to chan */
|
||||||
int fxunit_idx = synth->channel[chan]->mapping_to_fx;
|
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);
|
||||||
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_API_RETURN(FLUID_OK);
|
FLUID_API_RETURN(FLUID_OK);
|
||||||
|
|
Loading…
Reference in a new issue