mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-13 19:31:10 +00:00
remove unused fluid_voice_write()
This commit is contained in:
parent
5829fdc27c
commit
aa0d32f29a
3 changed files with 1 additions and 32 deletions
|
@ -28,7 +28,7 @@
|
|||
* Interpolates audio data (obtains values between the samples of the original
|
||||
* waveform data).
|
||||
*
|
||||
* Variables loaded from the voice structure (assigned in fluid_voice_write()):
|
||||
* Variables loaded from the voice structure (assigned in fluid_rvoice_write()):
|
||||
* - dsp_data: Pointer to the original waveform data
|
||||
* - dsp_phase: The position in the original waveform data.
|
||||
* This has an integer and a fractional part (between samples).
|
||||
|
|
|
@ -384,35 +384,6 @@ fluid_real_t fluid_voice_gen_value(const fluid_voice_t* voice, int num)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Synthesize a voice to a buffer.
|
||||
*
|
||||
* @param voice Voice to synthesize
|
||||
* @param dsp_buf Audio buffer to synthesize to (#FLUID_BUFSIZE in length)
|
||||
* @return Count of samples written to dsp_buf (can be 0)
|
||||
*
|
||||
* Panning, reverb and chorus are processed separately. The dsp interpolation
|
||||
* routine is in (fluid_rvoice_dsp.c).
|
||||
*/
|
||||
int
|
||||
fluid_voice_write (fluid_voice_t* voice, fluid_real_t *dsp_buf)
|
||||
{
|
||||
int result;
|
||||
if (!voice->can_access_rvoice)
|
||||
return 0;
|
||||
|
||||
result = fluid_rvoice_write(voice->rvoice, dsp_buf);
|
||||
|
||||
if (result == -1)
|
||||
return 0;
|
||||
|
||||
if ((result < FLUID_BUFSIZE) && fluid_voice_is_playing(voice)) /* Voice finished by itself */
|
||||
fluid_voice_off(voice);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* fluid_voice_start
|
||||
*/
|
||||
|
|
|
@ -120,8 +120,6 @@ void delete_fluid_voice(fluid_voice_t* voice);
|
|||
void fluid_voice_start(fluid_voice_t* voice);
|
||||
void fluid_voice_calculate_gen_pitch(fluid_voice_t* voice);
|
||||
|
||||
int fluid_voice_write (fluid_voice_t* voice, fluid_real_t *dsp_buf);
|
||||
|
||||
int fluid_voice_init(fluid_voice_t* voice, fluid_sample_t* sample,
|
||||
fluid_zone_range_t *inst_zone_range,
|
||||
fluid_channel_t* channel, int key, int vel,
|
||||
|
|
Loading…
Reference in a new issue