mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 15:11:12 +00:00
Added CLSCompliant overload to Alc.CaptureOpenDevice.
This commit is contained in:
parent
e7590ea784
commit
550520a994
|
@ -311,6 +311,16 @@ namespace OpenTK.Audio
|
||||||
/// <returns>Returns the capture device pointer, or NULL on failure.</returns>
|
/// <returns>Returns the capture device pointer, or NULL on failure.</returns>
|
||||||
[CLSCompliant(false), DllImport(Alc.Lib, EntryPoint = "alcCaptureOpenDevice", ExactSpelling = true, CallingConvention = Alc.Style, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity()]
|
[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);
|
public static extern IntPtr CaptureOpenDevice(string devicename, uint frequency, ALFormat format, int buffersize);
|
||||||
|
|
||||||
|
/// <summary>This function opens a capture device by name. </summary>
|
||||||
|
/// <param name="devicename">a pointer to a device name string.</param>
|
||||||
|
/// <param name="frequency">the frequency that the buffer should be captured at.</param>
|
||||||
|
/// <param name="format">the requested capture buffer format.</param>
|
||||||
|
/// <param name="buffersize">the size of the capture buffer in samples, not bytes.</param>
|
||||||
|
/// <returns>Returns the capture device pointer, or NULL on failure.</returns>
|
||||||
|
[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 );
|
// ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice( const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize );
|
||||||
|
|
||||||
/// <summary>This function closes the specified capture device.</summary>
|
/// <summary>This function closes the specified capture device.</summary>
|
||||||
|
|
Loading…
Reference in a new issue