Package org.lwjgl.openal

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


    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

    }
   
    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

     * 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

    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

        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

Related Classes of org.lwjgl.openal.ALCdevice

Copyright © 2018 www.massapicom. 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.