Nettoyage
This commit is contained in:
parent
b8af051eae
commit
910a3af980
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ namespace DMX2
|
|||
public static partial class AlsaSeqLib
|
||||
{
|
||||
|
||||
public static class Invoke
|
||||
static class Invoke
|
||||
{
|
||||
|
||||
const string ASOUND_LIB_NAME = "libasound.so.2";
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ namespace DMX2
|
|||
}
|
||||
}
|
||||
}
|
||||
public static snd_seq_addr_t PtrToSndSeqAddr (this IntPtr ptr)
|
||||
static snd_seq_addr_t PtrToSndSeqAddr (this IntPtr ptr)
|
||||
{
|
||||
try {
|
||||
return (snd_seq_addr_t)Marshal.PtrToStructure (
|
||||
|
|
@ -81,7 +81,7 @@ namespace DMX2
|
|||
}
|
||||
}
|
||||
|
||||
public static IntPtr SndSeqAddrToPtr (this snd_seq_addr_t addr)
|
||||
static IntPtr SndSeqAddrToPtr (this snd_seq_addr_t addr)
|
||||
{
|
||||
IntPtr ptr = typeof(snd_seq_addr_t).Malloc ();
|
||||
Marshal.StructureToPtr (addr, ptr, false);
|
||||
|
|
@ -93,7 +93,7 @@ namespace DMX2
|
|||
return Marshal.AllocHGlobal (Marshal.SizeOf (type));
|
||||
}
|
||||
|
||||
public static string PtrToString (this IntPtr p)
|
||||
static string PtrToString (this IntPtr p)
|
||||
{
|
||||
if (p == IntPtr.Zero) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue