Jump to content


Problems using EAX with openal


2 replies to this topic

#1 dicksan

    New Member

  • Members
  • PipPip
  • 12 posts

Posted 13 January 2006 - 03:52 PM

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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 13 January 2006 - 11:14 PM

Are you sure you are including the headerfile al/eax.h?
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 dicksan

    New Member

  • Members
  • PipPip
  • 12 posts

Posted 14 January 2006 - 12:08 PM

yeah i'm including al/al.h and eax.h





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users