mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
Fix error with MSVC (#492)
FLUID_INLINE must be used instead of inline, otherwise MSVC fails to build fluidsynth.
This commit is contained in:
parent
5fe56b32b2
commit
828307ff09
1 changed files with 2 additions and 2 deletions
|
@ -447,7 +447,7 @@ static void set_mod_frequency(sinus_modulator *mod,
|
|||
@param pointer on modulator structure.
|
||||
@return current value of the modulator sine wave.
|
||||
-----------------------------------------------------------------------------*/
|
||||
static inline fluid_real_t get_mod_sinus(sinus_modulator *mod)
|
||||
static FLUID_INLINE fluid_real_t get_mod_sinus(sinus_modulator *mod)
|
||||
{
|
||||
fluid_real_t out;
|
||||
out = mod->a1 * mod->buffer1 - mod->buffer2;
|
||||
|
@ -613,7 +613,7 @@ static int set_mod_delay_line(mod_delay_line *mdl,
|
|||
@param mdl, pointer on modulated delay line.
|
||||
@return the sample value.
|
||||
-----------------------------------------------------------------------------*/
|
||||
static inline fluid_real_t get_mod_delay(mod_delay_line *mdl)
|
||||
static FLUID_INLINE fluid_real_t get_mod_delay(mod_delay_line *mdl)
|
||||
{
|
||||
fluid_real_t out_index; /* new modulated index position */
|
||||
int int_out_index; /* integer part of out_index */
|
||||
|
|
Loading…
Reference in a new issue