From ac4ac4d299812f1ec95a8aebef1983f0d9f5e7d8 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sun, 27 Oct 2013 07:22:16 -0400 Subject: [PATCH] AL_LOOP_POINTS_SOFT --- src/MiniTK/Audio/OpenAL/AL/AL.cs | 4 +++- src/MiniTK/Audio/OpenAL/AL/ALEnums.cs | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/MiniTK/Audio/OpenAL/AL/AL.cs b/src/MiniTK/Audio/OpenAL/AL/AL.cs index 5c7ecd2..8e9cac4 100644 --- a/src/MiniTK/Audio/OpenAL/AL/AL.cs +++ b/src/MiniTK/Audio/OpenAL/AL/AL.cs @@ -1494,7 +1494,6 @@ namespace OpenTK.Audio.OpenAL // AL_API void AL_APIENTRY alBufferfv( ALuint bid, ALenum param, const ALfloat* values ); // AL_API void AL_APIENTRY alBufferi( ALuint bid, ALenum param, ALint value ); // AL_API void AL_APIENTRY alBuffer3i( ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3 ); - // AL_API void AL_APIENTRY alBufferiv( ALuint bid, ALenum param, const ALint* values ); // AL_API void AL_APIENTRY alBuffer3f( ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3 ); */ @@ -1507,6 +1506,9 @@ namespace OpenTK.Audio.OpenAL Buffer3f( bid, param, values.X, values.Y, values.Z ); }*/ + [CLSCompliant(false), DllImport(AL.Lib, EntryPoint = "alBufferiv", ExactSpelling = true, CallingConvention = AL.Style), SuppressUnmanagedCodeSecurity()] + public static extern void Buffer(int bid, ALBufferiv param, uint[] param); + #endregion Set Buffer parameters #region Get Buffer parameters diff --git a/src/MiniTK/Audio/OpenAL/AL/ALEnums.cs b/src/MiniTK/Audio/OpenAL/AL/ALEnums.cs index d391b29..bd35020 100644 --- a/src/MiniTK/Audio/OpenAL/AL/ALEnums.cs +++ b/src/MiniTK/Audio/OpenAL/AL/ALEnums.cs @@ -46,6 +46,12 @@ namespace OpenTK.Audio.OpenAL Orientation = 0x100F, } + //A list of valid Integer Vector Buffer/GetBuffer parameters + public enum ALBufferiv : int + { + LoopPointsSoft = 0x2015, + } + ///A list of valid 32-bit Float Source/GetSource parameters public enum ALSourcef : int {