diff --git a/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs b/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs
index f74a162a..905d5a9f 100644
--- a/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs
+++ b/Source/OpenTK/Audio/OpenAL/Alc/Alc.cs
@@ -238,29 +238,29 @@ namespace OpenTK.OpenAL
/// a pointer to the device to be queried.
/// an attribute to be retrieved: ALC_DEVICE_SPECIFIER, ALC_CAPTURE_DEVICE_SPECIFIER, ALC_ALL_DEVICES_SPECIFIER
/// A List of strings containing the names of the Devices.
- public static IList GetString( IntPtr device,Enums.AlcGetStringList param )
+ public static IList GetString(IntPtr device, Enums.AlcGetStringList param)
{
- List result = new List( );
- IntPtr t = GetStringPrivate(IntPtr.Zero,(Enums.AlcGetString) Enums.AlcGetStringList.DeviceSpecifier);
- System.Text.StringBuilder sb = new System.Text.StringBuilder( );
+ List result = new List();
+ IntPtr t = GetStringPrivate(IntPtr.Zero, (Enums.AlcGetString)param);
+ System.Text.StringBuilder sb = new System.Text.StringBuilder();
byte b;
int offset = 0;
do
{
- b = Marshal.ReadByte(t,offset++);
- if ( b != 0 )
- sb.Append((char) b);
- if ( b == 0 )
+ b = Marshal.ReadByte(t, offset++);
+ if (b != 0)
+ sb.Append((char)b);
+ if (b == 0)
{
- result.Add(sb.ToString( ));
- if ( Marshal.ReadByte(t,offset) == 0 ) // offset already properly increased through ++
+ result.Add(sb.ToString());
+ if (Marshal.ReadByte(t, offset) == 0) // offset already properly increased through ++
break; // 2x null
else
- sb.Remove(0,sb.Length); // 1x null
+ sb.Remove(0, sb.Length); // 1x null
}
- } while ( true );
+ } while (true);
- return (IList) result;
+ return (IList)result;
}
/// This function returns integers related to the context.