Beispiel #1
0
        private static void LoadAlc()
        {
            // Util
            s_alc_getError  = LoadFunction <ALC_getError_t>("alcGetError");
            s_alc_getString = LoadFunction <ALC_getString_t>("alcGetString");

            // Device
            s_alc_openDevice  = LoadFunction <ALC_openDevice_t>("alcOpenDevice");
            s_alc_closeDevice = LoadFunction <ALC_closeDevice_t>("alcCloseDevice");

            // Context
            s_alc_createContext  = LoadFunction <ALC_createContext_t>("alcCreateContext");
            s_alc_destroyContext = LoadFunction <ALC_destroyContext_t>("alcDestroyContext");

            s_alc_processContext = LoadFunction <ALC_processContext_t>("alcProcessContext");
            s_alc_suspendContext = LoadFunction <ALC_suspendContext_t>("alcSuspendContext");

            s_alc_makeContextCurrent = LoadFunction <ALC_makeContextCurrent_t>("alcMakeContextCurrent");

            s_alc_getCurrentContext = LoadFunction <ALC_GetCurrentContext_t>("alcGetCurrentContext");
            s_alc_getCurrentDevice  = LoadFunction <ALC_GetCurrentDevice_t>("alcGetContextsDevice");

            // Capture
            s_alc_captureOpenDevice = LoadFunction <ALC_CaptureOpenDevice_t>("alcCaptureOpenDevice");
        }
Beispiel #2
0
        private static void LoadAlc()
        {
            s_alc_openDevice  = LoadFunction <ALC_openDevice_t>("alcOpenDevice");
            s_alc_closeDevice = LoadFunction <ALC_closeDevice_t>("alcCloseDevice");

            s_alc_getError = LoadFunction <ALC_getError_t>("alcGetError");

            s_alc_createContext  = LoadFunction <ALC_createContext_t>("alcCreateContext");
            s_alc_destroyContext = LoadFunction <ALC_destroyContext_t>("alcDestroyContext");

            s_alc_makeContextCurrent = LoadFunction <ALC_makeContextCurrent_t>("alcMakeContextCurrent");
        }