From 61a48526e3c73ec9fd74729631f6c5333890e88d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 17 Jul 2009 22:58:29 +0000 Subject: [PATCH] Added CLSCompliant overload to Alc.CaptureOpenDevice. --- Source/OpenTK/Audio/OpenAL/Alc/Alc.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.