Use inline instead of static for header C functions

This commit is contained in:
Ted John committed 2017-01-12 12:28:19 +00:00
1 parent 6126a60ac9
commit e67d8b4122
1 file changed
+3 -3
+3 -3
View File
@@ -89,9 +89,9 @@ void Mixer_Channel_SetGroup(void* channel, int group);
void* Mixer_Play_Music(int pathId, int loop, int streaming);
void Mixer_SetVolume(float volume);
static int DStoMixerVolume(int volume) { return (int)(SDL_MIX_MAXVOLUME * (SDL_pow(10, (float)volume / 2000))); }
static float DStoMixerPan(int pan) { return (((float)pan + -DSBPAN_LEFT) / DSBPAN_RIGHT) / 2; }
static double DStoMixerRate(int frequency) { return (double)frequency / 22050; }
inline int DStoMixerVolume(int volume) { return (int)(SDL_MIX_MAXVOLUME * (SDL_pow(10, (float)volume / 2000))); }
inline float DStoMixerPan(int pan) { return (((float)pan + -DSBPAN_LEFT) / DSBPAN_RIGHT) / 2; }
inline double DStoMixerRate(int frequency) { return (double)frequency / 22050; }
#ifdef __cplusplus
}