[Openal] problems whit alc

Daniel PEACOCK dpeacock at creativelabs.com
Mon Oct 30 11:28:58 PST 2006





Hi,

In OpenAL 1.1 all the string functions were changed to use ALchar or
ALCchar instead of ALubyte and ALCubyte, so you just need to change the
type of your 'DeviceName' variable.   Also, "DirectSound3D" is an old name
(still supported for backwards compatibility); it has been replaced with
"Generic Hardware" (and "DirectSound" has been replaced with "Generic
Software").   You may also like to look at the Device Enumeration extension
so that you can find all of the available OpenAL devices on the system.
There is example code that shows how to do this in the Windows OpenAL SDK
available on Creative's Developer Website at
http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45

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.



                                                                           
             "rollercoaster1 at i                                             
             nwind.it"                                                     
             <rollercoaster1 at i                                          To 
             nwind.it>                 "openal"                            
             Sent by:                  <openal at opensource.creative.com>    
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] problems whit alc          
                                                                           
             10/30/2006 10:19                                              
             AM                                                            
                                                                           
                                                                           
                                                                           




I have written these 3 lines:

ALCdevice* pDevice;

ALCubyte DeviceName[] = "DirectSound3D";

pDevice = alcOpenDevice(DeviceName);

The third line returns this error:
error C2664: 'alcOpenDevice' : cannot convert parameter 1 from 'unsigned
char [14]' to 'const char *'

What can I do?

Thanks!


------------------------------------------------------
Mutui a tassi scontati da 30 banche. Richiedi online e risparmia...Servizio
gratuito. www.mutuionline.it
http://click.libero.it/mutuionline30ott



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

ForwardSourceID:NT000383AA



More information about the Openal mailing list