mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 06:18:59 +00:00
Merge pull request #873 from madebr/openal_static
audio: define openal extensions in re3 owned namespace
This commit is contained in:
commit
95094e45af
2 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,14 @@
|
||||||
|
|
||||||
#ifdef AUDIO_OAL
|
#ifdef AUDIO_OAL
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When linking to a static openal-soft library,
|
||||||
|
* the extension function inside the openal library conflict with the variables here.
|
||||||
|
* Therefore declare these re3 owned symbols in a private namespace.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace re3_openal {
|
||||||
|
|
||||||
LPALGENEFFECTS alGenEffects;
|
LPALGENEFFECTS alGenEffects;
|
||||||
LPALDELETEEFFECTS alDeleteEffects;
|
LPALDELETEEFFECTS alDeleteEffects;
|
||||||
LPALISEFFECT alIsEffect;
|
LPALISEFFECT alIsEffect;
|
||||||
|
@ -37,6 +45,9 @@ LPALGETFILTERIV alGetFilteriv;
|
||||||
LPALGETFILTERF alGetFilterf;
|
LPALGETFILTERF alGetFilterf;
|
||||||
LPALGETFILTERFV alGetFilterfv;
|
LPALGETFILTERFV alGetFilterfv;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
using namespace re3_openal;
|
||||||
|
|
||||||
void EFXInit()
|
void EFXInit()
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,6 +11,8 @@ void EFX_Set(ALuint effect, const EAXLISTENERPROPERTIES *props);
|
||||||
void EAX3_SetReverbMix(ALuint filter, float mix);
|
void EAX3_SetReverbMix(ALuint filter, float mix);
|
||||||
void SetEffectsLevel(ALuint uiFilter, float level);
|
void SetEffectsLevel(ALuint uiFilter, float level);
|
||||||
|
|
||||||
|
namespace re3_openal {
|
||||||
|
|
||||||
extern LPALGENEFFECTS alGenEffects;
|
extern LPALGENEFFECTS alGenEffects;
|
||||||
extern LPALDELETEEFFECTS alDeleteEffects;
|
extern LPALDELETEEFFECTS alDeleteEffects;
|
||||||
extern LPALISEFFECT alIsEffect;
|
extern LPALISEFFECT alIsEffect;
|
||||||
|
@ -44,4 +46,9 @@ extern LPALGETFILTERI alGetFilteri;
|
||||||
extern LPALGETFILTERIV alGetFilteriv;
|
extern LPALGETFILTERIV alGetFilteriv;
|
||||||
extern LPALGETFILTERF alGetFilterf;
|
extern LPALGETFILTERF alGetFilterf;
|
||||||
extern LPALGETFILTERFV alGetFilterfv;
|
extern LPALGETFILTERFV alGetFilterfv;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
using namespace re3_openal;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue