Do EAX environment operations only apply to mono waves?
EAX in openAL
Started by McCloud, Sep 25 2004 11:54 AM
3 replies to this topic
#1
Posted 25 September 2004 - 11:54 AM
I cant find any code examples of EAX being used by openAL. Does anyone even use it? This sucks.
Do EAX environment operations only apply to mono waves?
Do EAX environment operations only apply to mono waves?
#2
Posted 25 September 2004 - 12:31 PM
You need this file included: http://ftp.berlios.de/pub/worldspace/Mingw...nclude/al/eax.h
and you request it like this:
this is translated from object pascal so please ask somebody else if there's problems with it.. i'm not really an expert into c++ :blush:
and you request it like this:
alIsExtensionPresent("EAX2.0");
palubyte FnName = "EAXSet";
eaxSet = alGetProcAddress(FnName);
FnName = "EAXGet";
eaxGet = alGetProcAddress(FnName);
//set the effect
TAluInt Env = EAX_ENVIRONMENT_BATHROOM;
eaxSet(DSPROPSETID_EAX20_ListenerProperties,
DSPROPERTY_EAXLISTENER_ENVIRONMENT or
DSPROPERTY_EAXLISTENER_DEFERRED,
0, &Env, sizeof(TALuint));
// Commit settings on source 0
eaxSet(DSPROPSETID_EAX20_BufferProperties,
DSPROPERTY_EAXBUFFER_COMMITDEFERREDSETTINGS,
source, null, 0); //where source is the source to apply it to.. i think....
// Commit Listener settings
eaxSet(DSPROPSETID_EAX20_ListenerProperties,
DSPROPERTY_EAXLISTENER_COMMITDEFERREDSETTINGS, 0, null, 0);
this is translated from object pascal so please ask somebody else if there's problems with it.. i'm not really an expert into c++ :blush:
Peregrinus, expectavi pedos meos in cymbalis!
#4
Posted 11 February 2005 - 02:04 PM
McCloud said:
Yes, EAX 1 -> 4 is only applied to mono sources. Stereo support is promised in version 5. Until then, just place 2 3D sources in the room, and pan them.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












