Skip to content

Commit

Permalink
Remove all warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmirr committed Jan 8, 2021
1 parent f355eec commit 6338389
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
18 changes: 7 additions & 11 deletions GHNamespaceK/Class119.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,31 @@ public static bool smethod_1()
return alIsExtensionPresent("AL_EXT_MCFORMATS");
}

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alGenSources(int n, out IntPtr sources);

[CLSCompliant(true)]
public static IntPtr smethod_2()
{
IntPtr result;
alGenSources(1, out result);
return result;
}

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alDeleteSources(int int0, ref IntPtr intptr0);

[CLSCompliant(true)]
public static void smethod_3(IntPtr intptr0)
{
alDeleteSources(1, ref intptr0);
}

[CLSCompliant(false), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alSourcef(IntPtr intptr0, Enum10 enum100, float float0);

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alGetSourcei(IntPtr sid, Enum11 param, out int value);

Expand All @@ -59,15 +57,15 @@ public static int smethod_4(IntPtr intptr0, Enum11 enum110)
return result;
}

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alSourcePlay(IntPtr intptr0);

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alSourceStop(IntPtr intptr0);

[CLSCompliant(true), SuppressUnmanagedCodeSecurity]
[SuppressUnmanagedCodeSecurity]
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alSourcePause(IntPtr intptr0);

Expand Down Expand Up @@ -115,7 +113,6 @@ public static IntPtr[] smethod_7(IntPtr intptr0, int int0)
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alGenBuffers(int n, [Out] IntPtr[] buffers);

[CLSCompliant(true)]
public static IntPtr[] smethod_8(int int0)
{
var array = new IntPtr[int0];
Expand All @@ -127,7 +124,6 @@ public static IntPtr[] smethod_8(int int0)
[DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void alDeleteBuffers(int n, [In] IntPtr[] buffers);

[CLSCompliant(true)]
public static void smethod_9(IntPtr[] intptr0)
{
if (intptr0 == null)
Expand Down
1 change: 0 additions & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Guid("2ea4daa3-fbad-426d-b260-1bfc38a7c320")]
[assembly: CLSCompliant(true)]
[module: UnverifiableCode]

0 comments on commit 6338389

Please sign in to comment.