PDA

View Full Version : Problems using EAX with openal


dicksan
01-13-2006, 08:52 AM
To set and get the eax properties using openal and C++ I use EAXset and EAXget. When i try using these such as:

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:

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

Reedbeta
01-13-2006, 04:14 PM
Are you sure you are including the headerfile al/eax.h?

dicksan
01-14-2006, 05:08 AM
yeah i'm including al/al.h and eax.h