add getter for fx buffers to rvoice_mixer

This commit is contained in:
derselbst 2017-07-12 22:02:35 +02:00
parent 01215921c8
commit 54a7f5cae8
2 changed files with 10 additions and 2 deletions

View file

@ -702,6 +702,14 @@ int fluid_rvoice_mixer_get_bufs(fluid_rvoice_mixer_t* mixer,
return mixer->buffers.buf_count;
}
int fluid_rvoice_mixer_get_fx_bufs(fluid_rvoice_mixer_t* mixer,
fluid_real_t*** fx_left, fluid_real_t*** fx_right)
{
*left = mixer->buffers.fx_left_buf;
*right = mixer->buffers.fx_right_buf;
return mixer->buffers.fx_buf_count;
}
#ifdef ENABLE_MIXER_THREADS

View file

@ -2426,8 +2426,8 @@ fluid_synth_program_reset(fluid_synth_t* synth)
* @param len Count of audio frames to synthesize
* @param left Array of floats to store left channel of audio (\c len in size)
* @param right Array of floats to store right channel of audio (\c len in size)
* @param fx_left Array of floats to store left effect channel (reverb and chrous, \c len in size)
* @param fx_right Array of floats to store right effect channel (reverb and chorus, \c len in size)
* @param fx_left since 1.1.7: Array of floats to store left effect channel (reverb and chrous, \c len in size)
* @param fx_right since 1.1.7: Array of floats to store right effect channel (reverb and chorus, \c len in size)
* @return FLUID_OK on success, FLUID_FAIL otherwise
*
* @note Should only be called from synthesis thread.