[Openal] problems whit alc
Jason Daly
jdaly at ist.ucf.edu
Mon Oct 30 11:29:27 PST 2006
rollercoaster1 at inwind.it wrote:
> 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?
>
Change this:
ALCubyte DeviceName[] = "DirectSound3D";
to this:
ALCchar DeviceName[] = "DirectSound3D";
The device name parameter was changed from ALCubyte to ALCchar in the
OpenAL 1.1 specification.
--"J"
More information about the Openal
mailing list