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

org.lwjgl.openal.SOFTBufferSubData 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 java.nio.*;

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_buffer_sub_data extension.
 * 
 * 

This extension allows an application to modify a section of buffered sample data while the buffer is in use.

*/ public class SOFTBufferSubData { /** Accepted by the {@code paramName} parameter of {@link AL10#alGetSourceiv GetSourceiv} and {@link AL10#alGetSourcefv GetSourcefv}. */ public static final int AL_BYTE_RW_OFFSETS_SOFT = 0x1031, AL_SAMPLE_RW_OFFSETS_SOFT = 0x1032; protected SOFTBufferSubData() { throw new UnsupportedOperationException(); } // --- [ alBufferSubDataSOFT ] --- public static void nalBufferSubDataSOFT(int buffer, int format, long data, int offset, int length) { long __functionAddress = AL.getICD().alBufferSubDataSOFT; if (CHECKS) { check(__functionAddress); } invokePV(buffer, format, data, offset, length, __functionAddress); } public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ByteBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataSOFT(buffer, format, memAddress(data), offset, data.remaining()); } public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ShortBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataSOFT(buffer, format, memAddress(data), offset, data.remaining() << 1); } public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") IntBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataSOFT(buffer, format, memAddress(data), offset, data.remaining() << 2); } public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") FloatBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataSOFT(buffer, format, memAddress(data), offset, data.remaining() << 2); } // --- [ alBufferSubDataDirectSOFT ] --- public static void nalBufferSubDataDirectSOFT(long context, int buffer, int format, long data, int offset, int length) { long __functionAddress = AL.getICD().alBufferSubDataDirectSOFT; if (CHECKS) { check(__functionAddress); check(context); } invokePPV(context, buffer, format, data, offset, length, __functionAddress); } public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ByteBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataDirectSOFT(context, buffer, format, memAddress(data), offset, data.remaining()); } public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ShortBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataDirectSOFT(context, buffer, format, memAddress(data), offset, data.remaining() << 1); } public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") IntBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataDirectSOFT(context, buffer, format, memAddress(data), offset, data.remaining() << 2); } public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") FloatBuffer data, @NativeType("ALsizei") int offset) { nalBufferSubDataDirectSOFT(context, buffer, format, memAddress(data), offset, data.remaining() << 2); } /** Array version of: {@link #alBufferSubDataSOFT BufferSubDataSOFT} */ public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") short[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataSOFT; if (CHECKS) { check(__functionAddress); } invokePV(buffer, format, data, offset, data.length << 1, __functionAddress); } /** Array version of: {@link #alBufferSubDataSOFT BufferSubDataSOFT} */ public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") int[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataSOFT; if (CHECKS) { check(__functionAddress); } invokePV(buffer, format, data, offset, data.length << 2, __functionAddress); } /** Array version of: {@link #alBufferSubDataSOFT BufferSubDataSOFT} */ public static void alBufferSubDataSOFT(@NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") float[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataSOFT; if (CHECKS) { check(__functionAddress); } invokePV(buffer, format, data, offset, data.length << 2, __functionAddress); } /** Array version of: {@link #alBufferSubDataDirectSOFT} */ public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") short[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataDirectSOFT; if (CHECKS) { check(__functionAddress); check(context); } invokePPV(context, buffer, format, data, offset, data.length << 1, __functionAddress); } /** Array version of: {@link #alBufferSubDataDirectSOFT} */ public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") int[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataDirectSOFT; if (CHECKS) { check(__functionAddress); check(context); } invokePPV(context, buffer, format, data, offset, data.length << 2, __functionAddress); } /** Array version of: {@link #alBufferSubDataDirectSOFT} */ public static void alBufferSubDataDirectSOFT(@NativeType("ALCcontext *") long context, @NativeType("ALuint") int buffer, @NativeType("ALenum") int format, @NativeType("ALvoid const *") float[] data, @NativeType("ALsizei") int offset) { long __functionAddress = AL.getICD().alBufferSubDataDirectSOFT; if (CHECKS) { check(__functionAddress); check(context); } invokePPV(context, buffer, format, data, offset, data.length << 2, __functionAddress); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy