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 01-13-2006, 08:52 AM   #1
dicksan
New Member
 
Join Date: Oct 2005
Posts: 12
Default Problems using EAX with openal

To set and get the eax properties using openal and C++ I use EAXset and EAXget. When i try using these such as:

Code:
eaxSet(&DSPROPSETID_EAX_ListenerProperties, DSPROPERTY_EAXLISTENER_ROOM | DSPROPERTY_EAXLISTENER_DEFERRED, NULL, &iRoom, sizeof(int));

I get errors like:
'eaxSet' : undeclared identifier
'eaxGet' : undeclared identifier


When i try defining these by using this:

Code:
const GUID DSPROPSETID_EAX20_ListenerProperties = { 0x306a6a8, 0xb224, 0x11d2, { 0x99, 0xe5, 0x0, 0x0, 0xe8, 0xd8, 0xc7, 0x22 } }; const GUID DSPROPSETID_EAX20_BufferProperties = { 0x306a6a7, 0xb224, 0x11d2, {0x99, 0xe5, 0x0, 0x0, 0xe8, 0xd8, 0xc7, 0x22 } }; EAXSet eaxSet; EAXGet eaxGet;


It compiles ok but I get link errors saying they are already defined in another one of my classes. This may be because i need to use eaxSet/get in two different classes and i am not sure where to put the above code. If i put it in a header file that the 2 classes include then i get the same link error.

I am only using EAX2.0 atm but will be supporting 3-5 later.

Please help, or could someone just tell me how to use eax with Openal properly if i am going about it all wrong.

Thanks
dicksan is offline   Reply With Quote
Old 01-13-2006, 04:14 PM   #2
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,708
Default Re: Problems using EAX with openal

Are you sure you are including the headerfile al/eax.h?
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is online now   Reply With Quote
Old 01-14-2006, 05:08 AM   #3
dicksan
New Member
 
Join Date: Oct 2005
Posts: 12
Default Re: Problems using EAX with openal

yeah i'm including al/al.h and eax.h
dicksan 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:35 PM.


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