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

org.lwjgl.openal.SOFTSourceResampler 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.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openal;

import javax.annotation.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;

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

This extension provides a method for applications to use different resamplers for sources. OpenAL automatically resamples when playing a source at a * sample rate that don't match the device's sample rate, but the resampling method is left unspecified. One could assume it would use the "best" resample * method available, but this gives no clear information about what's used nor any way to choose between quality or performance. Further, some * applications may prefer lower quality resamplers for its spectral properties.

*/ public class SOFTSourceResampler { /** Accepted as the {@code pname} parameter of {@link AL10#alGetInteger GetInteger} and {@link AL10#alGetIntegerv GetIntegerv}. */ public static final int AL_NUM_RESAMPLERS_SOFT = 0x1210, AL_DEFAULT_RESAMPLER_SOFT = 0x1211; /** Accepted as the {@code param} parameter of {@link AL10#alSourcei Sourcei}, {@link AL11#alSourceiv Sourceiv}, {@link AL10#alGetSourcei GetSourcei}, and {@link AL10#alGetSourceiv GetSourceiv}. */ public static final int AL_SOURCE_RESAMPLER_SOFT = 0x1212; /** Accepted as the {@code pname} parameter of {@link #alGetStringiSOFT GetStringiSOFT}. */ public static final int AL_RESAMPLER_NAME_SOFT = 0x1213; protected SOFTSourceResampler() { throw new UnsupportedOperationException(); } static boolean isAvailable(ALCapabilities caps) { return checkFunctions( caps.alGetStringiSOFT ); } // --- [ alGetStringiSOFT ] --- public static long nalGetStringiSOFT(int pname, int index) { long __functionAddress = AL.getICD().alGetStringiSOFT; if (CHECKS) { check(__functionAddress); } return invokeP(__functionAddress, pname, index); } @Nullable @NativeType("ALchar const *") public static String alGetStringiSOFT(@NativeType("ALenum") int pname, @NativeType("ALsizei") int index) { long __result = nalGetStringiSOFT(pname, index); return memUTF8Safe(__result); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy