[Openal] OpenAL and EAX (EFX)

Daniel PEACOCK dpeacock at creativelabs.com
Mon Apr 9 10:19:19 PDT 2007





Hi Samuel,

Are you requesting the addresses of the EFX functions ?   As EFX is an
*extension* to OpenAL, you cannot assume that it will always be available.
Therefore you should always check is the extension is supported, and if it
available, query for the addresses of the extension's functions. e.g.

#include <efx.h>

LPALGENEFFECTS alGenEffects = NULL;
LPALDELETEEFFECTS alDeleteEffects = NULL;
// Define variables for each function pointer you need ...

// pDevice valid Device handle
if (alcIsExtensionPresent(pDevice, "ALC_EFX_EXT"))
{
      alGenEffects = (LPALGENEFFECTS)alGetProcAddress("alGenEffects");
      alDeleteEffects =
(LPALDELETEEFFECTS)alGetProcAddress("alDeleteEffects");
      // Get the address of each function ...
}

If you have the Windows OpenAL SDK you can see how this is done in
framework.cpp.

Dan
Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.



                                                                           
             SamuelSmith                                                   
             <samuel_smith2000                                             
             @hotmail.com>                                              To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] OpenAL and EAX (EFX)       
                                                                           
             04/09/2007 03:52                                              
             AM                                                            
                                                                           
                                                                           
                                                                           





I have been trying to implemented EAX (EFX) with my C++/OpenGL/OpenAL
project
and have been unsuccessful. I have included the libraries that came with
the
OpenAL SDK:
#include <al/efx.h>
#include <al/EFX-Util.h>
#include <al/efx-creative.h>
But I have problems with any parts of EAX code, I copied tutorial 1 (from
the effects extensions guide from the SDK) into a function in my project
but
I receive these errors:
error C2065: 'alGenEffects' : undeclared identifier
error C2065: 'alDeleteEffects' : undeclared identifier
error C2065: 'alIsEffect' : undeclared identifier

For some reason I seem to be unable to get EAX working, any help would be
greatly appreciated on how to set this up and to get some basic EAX
features
working.
--
View this message in context:
http://www.nabble.com/OpenAL-and-EAX-%28EFX%29-tf3546703.html#a9900639
Sent from the OpenAL - User mailing list archive at Nabble.com.

_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0003F10E



More information about the Openal mailing list