Jump to content


EAX in openAL


3 replies to this topic

#1 McCloud

    New Member

  • Members
  • Pip
  • 2 posts

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. :angry:

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

#2 JSoftware

    Member

  • Members
  • PipPip
  • 70 posts

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:

  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!

#3 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 939 posts

Posted 27 September 2004 - 06:38 PM

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
"Stupid bug! You go squish now!!" - Homer Simpson

#4 AM_

    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 February 2005 - 02:04 PM

McCloud said:

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:

View Post

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