X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pico%2Fsound%2Fym2612.c;h=f7a073fbc052a4b18666236331a9addb97178f22;hb=a1f2e1b1537146ec7b72b1e9d5d5cd4d8dd6f06e;hp=4b64fb491b8a966a0df33fb56a88b7dfa9c89166;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/sound/ym2612.c b/pico/sound/ym2612.c index 4b64fb4..f7a073f 100644 --- a/pico/sound/ym2612.c +++ b/pico/sound/ym2612.c @@ -139,6 +139,10 @@ void memset32(int *dest, int c, int count); #define INLINE static __inline #endif +#ifndef STRICTINLINE +#define STRICTINLINE static inline +#endif + #ifndef M_PI #define M_PI 3.14159265358979323846 #endif @@ -561,7 +565,6 @@ INLINE void FM_KEYON(int c , int s ) SLOT->key = 1; SLOT->phase = 0; /* restart Phase Generator */ SLOT->state = EG_ATT; /* phase -> Attack */ - SLOT->volume = MAX_ATT_INDEX; /* fix Ecco 2 splash sound */ ym2612.slot_mask |= (1<> ((eg_cnt>>shift)&7)*3)&7)) >> 1) -INLINE UINT32 update_eg_phase(FM_SLOT *SLOT, UINT32 eg_cnt) +STRICTINLINE UINT32 update_eg_phase(FM_SLOT *SLOT, UINT32 eg_cnt) { INT32 volume = SLOT->volume; @@ -1202,7 +1205,7 @@ static int chan_render(int *buffer, int length, int c, UINT32 flags) // flags: s } /* update phase increment and envelope generator */ -INLINE void refresh_fc_eg_slot(FM_SLOT *SLOT, int fc, int kc) +STRICTINLINE void refresh_fc_eg_slot(FM_SLOT *SLOT, int fc, int kc) { int ksr, fdt;