EAX in openAL

1a6aedc551786cde79a26c91231aed09
0
McCloud 101 Sep 25, 2004 at 11:54

I cant find any code examples of EAX being used by openAL. Does anyone even use it? This sucks. :angry:

Do EAX environment operations only apply to mono waves? :wacko:

3 Replies

Please log in or register to post a reply.

357c7b2935ccd2cb0913717186684394
0
JSoftware 101 Sep 25, 2004 at 12:31

You need this file included: http://ftp.berlios.de/pub/worldspace/Mingw…nclude/al/eax.h

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:

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Sep 27, 2004 at 18:38

That header is from 1999! I am pretty sure EAX 4.0 exist nowadays.

Check out these links for more info:
EAX 2.0

alEax.c

E6054bb6187225c187281ca54c21dbe6
0
AM_ 101 Feb 11, 2005 at 14:04

@McCloud

I cant find any code examples of EAX being used by openAL. Does anyone even use it? This sucks. :angry:

Do EAX environment operations only apply to mono waves? :unsure:

[snapback]11948[/snapback]

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.