Unstable 0.17.0.0

This commit is contained in:
Markus Isberg
2022-02-26 02:43:01 +09:00
parent a83f375681
commit 3974067915
913 changed files with 32472 additions and 32364 deletions
@@ -109,6 +109,14 @@ namespace OpenAL
public const int CaptureDefaultDeviceSpecifier = 0x311;
public const int EnumCaptureSamples = 0x312;
public const int EnumConnected = 0x313;
public const int OutputDevicesSpecifier =
#if OSX
DeviceSpecifier;
#else
AllDevicesSpecifier;
#endif
#endregion
@@ -214,7 +222,7 @@ namespace OpenAL
return Encoding.UTF8.GetString(bytes);
}
public static IList<string> GetStringList(IntPtr device, int param)
public static IReadOnlyList<string> GetStringList(IntPtr device, int param)
{
List<string> retVal = new List<string>();
IntPtr strPtr = _GetString(device, param);
@@ -224,7 +232,8 @@ namespace OpenAL
byte currChar = Marshal.ReadByte(strPtr, strEnd);
if (currChar == '\0') { return retVal; }
byte prevChar = 255;
while (true) {
while (true)
{
strEnd++;
prevChar = currChar;
currChar = Marshal.ReadByte(strPtr, strEnd);