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
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
