All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.openal.SOFTBufferLengthQuery Maven / Gradle / Ivy

Go to download

A cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications.

The newest version!
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openal;

/**
 * Native bindings to the SOFT_buffer_length_query extension.
 * 
 * 

This extension adds buffer queries to get the length in bytes, samples, and seconds.

* *

Standard OpenAL only has queries for a buffer's storage size, the bits per sample, channel count, and sample rate, where the application needs to * calculate what it wants from those. While this works alright for standard formats and most extension formats, it won't work for certain compressed * formats like ADPCM. These extra queries ensure the application can get information about the buffer it may need.

*/ public final class SOFTBufferLengthQuery { /** Accepted by the {@code paramName} parameter of {@link AL10#alGetBufferi GetBufferi} and {@link AL11#alGetBufferiv GetBufferiv}. */ public static final int AL_BYTE_LENGTH_SOFT = 0x2009, AL_SAMPLE_LENGTH_SOFT = 0x200A; /** Accepted by the {@code paramName} parameter of {@link AL10#alGetBufferf GetBufferf} and {@link AL11#alGetBufferfv GetBufferfv}. */ public static final int AL_SEC_LENGTH_SOFT = 0x200B; private SOFTBufferLengthQuery() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy