openal-soft icon indicating copy to clipboard operation
openal-soft copied to clipboard

Dynamic linking of library functions

Open native-engine opened this issue 8 months ago • 0 comments

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; }


native-engine avatar May 07 '25 20:05 native-engine