Error 1 error C2440: 'initializing' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 254 kcm_audio
Error 2 error C2440: '=' : cannot convert from 'void *' to 'ALuint *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 277 kcm_audio
Error 3 error C2440: 'initializing' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 328 kcm_audio
Error 4 error C2440: 'initializing' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 344 kcm_audio
Error 5 error C2440: '=' : cannot convert from 'void *' to 'ALuint *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 377 kcm_audio
Error 6 error C2440: 'initializing' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 415 kcm_audio
Error 7 error C2440: 'initializing' : cannot convert from 'void *const ' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 455 kcm_audio
Error 8 error C2440: '=' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 500 kcm_audio
Error 9 error C2440: 'initializing' : cannot convert from 'void *const ' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 618 kcm_audio
Error 10 error C2440: 'initializing' : cannot convert from 'void *' to 'ALLEGRO_AL_DATA *' c:\AllegroNet\Allegro\allegro\addons\kcm_audio\openal.c 632 kcm_audio
I added the casts (attached) but that gave me a linker error that I can't figure out.
Error 1 error LNK2019: unresolved external symbol "void const * __cdecl _al_voice_update(struct ALLEGRO_VOICE *,unsigned long *)" (?_al_voice_update@xxxxxxxxxx@@PAK@Z) referenced in function "void * __cdecl _openal_update(struct ALLEGRO_THREAD *,void *)" (?_openal_update@xxxxxxxxxx@Z) openal.obj kcm_audio
_al_voice_update is clearly defined in kcm_voice.c. dsound.cpp references it as well, and resolved without a problem. Changing the definition of _al_voice_update to _al_voice_update2 makes dsound.obj fail in a different way than openal.obj:
Error 1 error LNK2019: unresolved external symbol __al_voice_update referenced in function __dsound_update dsound.obj kcm_audio
Any ideas?