mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use inline instead of static for header C functions
This commit is contained in:
parent
6126a60ac9
commit
e67d8b4122
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue