Examples of ALCdevice


Examples of net.java.games.joal.ALCdevice

            al = ALFactory.getAL();
        }
        if (alc == null) {
            alc = ALFactory.getALC();
        }
        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) {
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

    if(!EFXUtil.isEfxSupported()) {
      System.out.println("EFX not available");
      return;
    }

    ALCdevice device = AL.getDevice();
        IntBuffer major = BufferUtils.createIntBuffer(1);
        IntBuffer minor = BufferUtils.createIntBuffer(1);
        IntBuffer sends = BufferUtils.createIntBuffer(1);
        ALC10.alcGetInteger(device, EFX10.ALC_EFX_MAJOR_VERSION, major);
        ALC10.alcGetInteger(device, EFX10.ALC_EFX_MINOR_VERSION, minor);
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

    System.out.println(kind + " error " + description + " occured");
  }

  private void checkForErrors() {
    {
      ALCdevice device = ALC10.alcGetContextsDevice(ALC10.alcGetCurrentContext());
      int error = ALC10.alcGetError(device);
      if(error != ALC10.ALC_NO_ERROR) {
        die("ALC", ALC10.alcGetString(device, error));
      }
    }
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

    }
   
    String defaultRecorder = ALC10.alcGetString(AL.getDevice(), ALC11.ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER);
    System.out.println("Default capture device: " + defaultRecorder);
   
    ALCdevice device = ALC11.alcCaptureOpenDevice(null, FREQ, FMT, SAMPS);

    if(device != null) {
      // record some sound
      // =====================================
      System.out.print("Recording using " + ALC10.alcGetString(device, ALC11.ALC_CAPTURE_DEVICE_SPECIFIER) + "...");
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

     * OpenAL SDK. Nothing is played in this method.
     */
    private static void silentTests() throws Exception {
        setupEfx();

        final ALCdevice device = AL.getDevice();

        // Create context (only necessary if LWJGL context isn't sufficient, done as example)
        final IntBuffer contextAttribList = BufferUtils.createIntBuffer(8);
        contextAttribList.put(ALC10.ALC_FREQUENCY);
        contextAttribList.put(44100);
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

    AL.destroy();
  }

  private void printALCInfo() {
    IntBuffer version = BufferUtils.createIntBuffer(2);
    ALCdevice device;

    if(ALC10.alcIsExtensionPresent(null, "ALC_ENUMERATION_EXT")) {
          if(ALC10.alcIsExtensionPresent(null, "ALC_ENUMERATE_ALL_EXT")) {
              printDevices(ALC11.ALC_ALL_DEVICES_SPECIFIER, "playback");
          } else {
View Full Code Here

Examples of org.lwjgl.openal.ALCdevice

        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));
        logger.info("Available ALC extensions: {}", ALC10.alcGetString(device, ALC10.ALC_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.