mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 20:25:39 +00:00
* AL/AL.cs:
* Alc/AlcEnums.cs: Fixed documentation warnings.
This commit is contained in:
parent
0ac37632a4
commit
9b4e8d18f9
|
@ -396,14 +396,30 @@ namespace OpenTK.Audio.OpenAL
|
|||
/// <param name="n">The number of sources to be generated.</param>
|
||||
/// <param name="sources">Pointer to an array of uint values which will store the names of the new sources.</param>
|
||||
[CLSCompliant(false)]
|
||||
[DllImport(AL.Lib, EntryPoint = "alGenSources", ExactSpelling = true, CallingConvention = AL.Style), SuppressUnmanagedCodeSecurity()]
|
||||
public static extern void GenSources(int n, out uint sources);
|
||||
public static void GenSources(int n, out uint sources)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (uint* sources_ptr = &sources)
|
||||
{
|
||||
GenSourcesPrivate(n, sources_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>This function generates one or more sources. References to sources are int values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="n">The number of sources to be generated.</param>
|
||||
/// <param name="sources">Pointer to an array of int values which will store the names of the new sources.</param>
|
||||
[DllImport(AL.Lib, EntryPoint = "alGenSources", ExactSpelling = true, CallingConvention = AL.Style), SuppressUnmanagedCodeSecurity()]
|
||||
public static extern void GenSources(int n, out int sources);
|
||||
public static void GenSources(int n, out int sources)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (int* sources_ptr = &sources)
|
||||
{
|
||||
GenSourcesPrivate(n, (uint*)sources_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>This function generates one or more sources. References to sources are int values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="sources">Pointer to an array of int values which will store the names of the new sources.</param>
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace OpenTK.Audio.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines available parameters for <see cref="Alc.GetInteger(IntPtr, AlcGetInteger, int, out int)"/>.
|
||||
/// Defines available parameters for <see cref="Alc.GetInteger(IntPtr, AlcGetInteger, int, int[])"/>.
|
||||
/// </summary>
|
||||
public enum AlcGetInteger : int
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue