DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-25-2004, 05:54 AM   #1
McCloud
New Member
 
Join Date: Sep 2004
Posts: 2
Default

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?
McCloud is offline   Reply With Quote
Old 09-25-2004, 06:31 AM   #2
JSoftware
Member
 
Join Date: Jun 2004
Location: Århus, Denmark
Posts: 73
Default

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

and you request it like this:

Code:
* 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++
___________________________________________
Peregrinus, expectavi pedos meos in cymbalis!
JSoftware is offline   Reply With Quote
Old 09-27-2004, 12:38 PM   #3
Kenneth Gorking
Senior Member
 
Kenneth Gorking's Avatar
 
Join Date: Aug 2004
Location: Århus, Denmark
Posts: 688
Default

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
Kenneth Gorking is offline   Reply With Quote
Old 02-11-2005, 07:04 AM   #4
AM_
New Member
 
Join Date: Feb 2005
Location: Denmark
Posts: 4
Talking

Quote:
Originally Posted by McCloud
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?
[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.
AM_ is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 12:22 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.