Examples of ALCcontext


Examples of net.java.games.joal.ALCcontext

        }
        ALCdevice d = alc.alcOpenDevice(deviceName);
        if (d == null) {
            throw new ALException("Error opening default OpenAL device");
        }
        ALCcontext c = alc.alcCreateContext(d, null);
        if (c == null) {
            alc.alcCloseDevice(d);
            throw new ALException("Error creating OpenAL context");
        }
        alc.alcMakeContextCurrent(c);
View Full Code Here

Examples of org.lwjgl.openal.ALCcontext

        contextAttribList.rewind();
        // ALC_MAX_AUXILIARY_SENDS won't go above compile-time max. Set to compile-time max if
        // greater.
        contextAttribList.put(EFX10.ALC_MAX_AUXILIARY_SENDS);
        contextAttribList.put(2);
        final ALCcontext newContext = ALC10.alcCreateContext(device, contextAttribList);
        if (newContext == null) {
            throw new Exception("Failed to create context.");
        }
        final int contextCurResult = ALC10.alcMakeContextCurrent(newContext);
        if (contextCurResult == ALC10.ALC_FALSE) {
View Full Code Here

Examples of org.lwjgl.openal.ALCcontext

        AL10.alGetError();

        logger.info("OpenAL {} initialized!", AL10.alGetString(AL10.AL_VERSION));

        ALCcontext context = ALC10.alcGetCurrentContext();
        ALCdevice device = ALC10.alcGetContextsDevice(context);

        logger.info("Using OpenAL: {} by {}", AL10.alGetString(AL10.AL_RENDERER), AL10.alGetString(AL10.AL_VENDOR));
        logger.info("Using device: {}", ALC10.alcGetString(device, ALC10.ALC_DEVICE_SPECIFIER));
        logger.info("Available AL extensions: {}", AL10.alGetString(AL10.AL_EXTENSIONS));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.