mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +00:00
add getter for fx buffers to rvoice_mixer
This commit is contained in:
parent
01215921c8
commit
54a7f5cae8
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue