diff options
author | twinaphex | 2018-04-20 19:11:34 +0200 |
---|---|---|
committer | twinaphex | 2018-04-20 19:11:34 +0200 |
commit | 47546eadea450c5058a4bea80930a711534a1326 (patch) | |
tree | 95fbc4f803fe0824c73b14f1f94ecb05d6de5184 /src/apu.c | |
parent | f1e7b6b3394c66860b810804aac45be24bd31dbf (diff) | |
download | snes9x2002-47546eadea450c5058a4bea80930a711534a1326.tar.gz snes9x2002-47546eadea450c5058a4bea80930a711534a1326.tar.bz2 snes9x2002-47546eadea450c5058a4bea80930a711534a1326.zip |
Use retro_inline.h
Diffstat (limited to 'src/apu.c')
-rw-r--r-- | src/apu.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -98,12 +98,12 @@ unsigned long DecreaseERateExp[32][10]; unsigned long KeyOffERate[10];
-static inline void S9xSetEnvelopeRate(int channel, unsigned long rate, int direction, int target, unsigned int mode)
+static INLINE void S9xSetEnvelopeRate(int channel, unsigned long rate, int direction, int target, unsigned int mode)
{
S9xSetEnvRate(&SoundData.channels [channel], rate, direction, target, mode);
}
-static inline void S9xSetSoundADSR(int channel, int attack_ind, int decay_ind,
+static INLINE void S9xSetSoundADSR(int channel, int attack_ind, int decay_ind,
int sustain_ind, int sustain_level, int release_rate)
{
int attack_rate = AttackRate [attack_ind];
@@ -141,7 +141,7 @@ static inline void S9xSetSoundADSR(int channel, int attack_ind, int decay_ind, }
}
-static inline void S9xSetSoundVolume(int channel, short volume_left, short volume_right)
+static INLINE void S9xSetSoundVolume(int channel, short volume_left, short volume_right)
{
Channel* ch = &SoundData.channels[channel];
if (!so.stereo)
@@ -153,7 +153,7 @@ static inline void S9xSetSoundVolume(int channel, short volume_left, short volum ch->right_vol_level = (ch->envx * volume_right) / 128;
}
-static inline void S9xSetMasterVolume(short volume_left, short volume_right)
+static INLINE void S9xSetMasterVolume(short volume_left, short volume_right)
{
if (Settings.DisableMasterVolume)
{
@@ -172,7 +172,7 @@ static inline void S9xSetMasterVolume(short volume_left, short volume_right) }
}
-static inline void S9xSetEchoVolume(short volume_left, short volume_right)
+static INLINE void S9xSetEchoVolume(short volume_left, short volume_right)
{
if (!so.stereo)
volume_left = (ABS(volume_right) + ABS(volume_left)) / 2;
@@ -182,18 +182,18 @@ static inline void S9xSetEchoVolume(short volume_left, short volume_right) SoundData.echo_volume [1] = volume_right;
}
-static inline void S9xSetEchoWriteEnable(uint8 byte)
+static INLINE void S9xSetEchoWriteEnable(uint8 byte)
{
SoundData.echo_write_enabled = byte;
S9xSetEchoDelay(APU.DSP [APU_EDL] & 15);
}
-static inline void S9xSetFrequencyModulationEnable(uint8 byte)
+static INLINE void S9xSetFrequencyModulationEnable(uint8 byte)
{
SoundData.pitch_mod = byte & (0xFE);//~1;
}
-static inline int S9xGetEnvelopeHeight(int channel)
+static INLINE int S9xGetEnvelopeHeight(int channel)
{
if ((Settings.SoundEnvelopeHeightReading ||
SNESGameFixes.SoundEnvelopeHeightReading2) &&
@@ -209,18 +209,18 @@ static inline int S9xGetEnvelopeHeight(int channel) return (0);
}
-static inline void S9xSetSoundHertz(int channel, int hertz)
+static INLINE void S9xSetSoundHertz(int channel, int hertz)
{
SoundData.channels[channel].hertz = hertz;
S9xSetSoundFrequency(channel, hertz);
}
-static inline void S9xSetSoundType(int channel, int type_of_sound)
+static INLINE void S9xSetSoundType(int channel, int type_of_sound)
{
SoundData.channels[channel].type = type_of_sound;
}
-static inline bool8 S9xSetSoundMode(int channel, int mode)
+static INLINE bool8 S9xSetSoundMode(int channel, int mode)
{
Channel* ch = &SoundData.channels[channel];
@@ -273,7 +273,7 @@ static inline bool8 S9xSetSoundMode(int channel, int mode) return (FALSE);
}
-static inline void S9xPlaySample(int channel)
+static INLINE void S9xPlaySample(int channel)
{
Channel* ch = &SoundData.channels[channel];
|