diff --git a/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs b/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs index d7033c3b..a772450c 100644 --- a/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs +++ b/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs @@ -311,6 +311,16 @@ namespace OpenTK.Audio /// Returns the capture device pointer, or NULL on failure. [CLSCompliant(false), DllImport(Alc.Lib, EntryPoint = "alcCaptureOpenDevice", ExactSpelling = true, CallingConvention = Alc.Style, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity()] public static extern IntPtr CaptureOpenDevice(string devicename, uint frequency, ALFormat format, int buffersize); + + /// This function opens a capture device by name. + /// a pointer to a device name string. + /// the frequency that the buffer should be captured at. + /// the requested capture buffer format. + /// the size of the capture buffer in samples, not bytes. + /// Returns the capture device pointer, or NULL on failure. + [DllImport(Alc.Lib, EntryPoint = "alcCaptureOpenDevice", ExactSpelling = true, CallingConvention = Alc.Style, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity()] + public static extern IntPtr CaptureOpenDevice(string devicename, int frequency, ALFormat format, int buffersize); + // ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice( const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize ); /// This function closes the specified capture device.