openal-soft
openal-soft copied to clipboard
Dynamic linking of library functions
Have you thought about adding to the examples a cross-platform code for dynamic linking of all actual AL and ALC functions of the OpenAL Soft library like the GLEW library or the code of the LoadOAL framework from Creative?
For example:
// Get function pointers lpOALFnTable->alEnable = (LPALENABLE)GetProcAddress(g_hOpenALDLL, "alEnable"); if (lpOALFnTable->alEnable == NULL) { OutputDebugString("Failed to retrieve 'alEnable' function address\n"); return AL_FALSE; }