Skip to content

Commit b1c03ee

Browse files
committed
Temporarily revert all generated changes to bindings for easier review
1 parent f75dd7f commit b1c03ee

File tree

3,213 files changed

+1008069
-1061709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,213 files changed

+1008069
-1061709
lines changed

sources/OpenAL/OpenAL/AL.gen.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Generated using the OpenAL Soft headers and corresponding dependencies.
4+
// Original source is licensed under the LGPL 2.0 license. Please note that while bindings are able to be MIT due to
5+
// being header-derived only, implementations of the headers may have a less permissive license.
6+
using System;
7+
using System.Diagnostics;
8+
using System.Reflection;
9+
using System.Runtime.CompilerServices;
10+
using System.Runtime.InteropServices;
11+
using Silk.NET.Core.Loader;
12+
13+
namespace Silk.NET.OpenAL;
14+
15+
partial class AL(INativeContext nativeContext) : IDisposable
16+
{
17+
public partial class DllImport : IAL.Static
18+
{
19+
static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly());
20+
}
21+
22+
public partial class ThisThread : IAL.Static
23+
{
24+
public static ThreadLocal<IAL> Underlying { get; } = new(ContextFactory);
25+
26+
public static void MakeCurrent(IAL ctx) => Underlying.Value = ctx;
27+
28+
private static partial IAL ContextFactory();
29+
}
30+
31+
private readonly unsafe void*[] _slots = new void*[297];
32+
33+
public static IAL Create(INativeContext ctx) => new AL(ctx);
34+
35+
/// <inheritdoc/>
36+
public void Dispose() => nativeContext.Dispose();
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Generated using the OpenAL Soft headers and corresponding dependencies.
4+
// Original source is licensed under the LGPL 2.0 license. Please note that while bindings are able to be MIT due to
5+
// being header-derived only, implementations of the headers may have a less permissive license.
6+
using System;
7+
using System.Diagnostics;
8+
using System.Reflection;
9+
using System.Runtime.CompilerServices;
10+
using System.Runtime.InteropServices;
11+
using Silk.NET.Core.Loader;
12+
13+
namespace Silk.NET.OpenAL;
14+
15+
partial class ALContext(INativeContext nativeContext) : IDisposable
16+
{
17+
public partial class DllImport : IALContext.Static
18+
{
19+
static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly());
20+
}
21+
22+
public partial class ThisThread : IALContext.Static
23+
{
24+
public static ThreadLocal<IALContext> Underlying { get; } = new(ContextFactory);
25+
26+
public static void MakeCurrent(IALContext ctx) => Underlying.Value = ctx;
27+
28+
private static partial IALContext ContextFactory();
29+
}
30+
31+
private readonly unsafe void*[] _slots = new void*[35];
32+
33+
public static IALContext Create(INativeContext ctx) => new ALContext(ctx);
34+
35+
/// <inheritdoc/>
36+
public void Dispose() => nativeContext.Dispose();
37+
}

sources/OpenAL/OpenAL/Al.gen.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

sources/OpenAL/OpenAL/AlContext.gen.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Generated using the OpenAL Soft headers and corresponding dependencies.
4+
// Original source is licensed under the LGPL 2.0 license. Please note that while bindings are able to be MIT due to
5+
// being header-derived only, implementations of the headers may have a less permissive license.
6+
using System;
7+
using System.Diagnostics;
8+
using System.Runtime.CompilerServices;
9+
using System.Runtime.InteropServices;
10+
11+
namespace Silk.NET.OpenAL;
12+
13+
[Transformed]
14+
public enum ALCEnum : uint
15+
{
16+
Invalid = unchecked((uint)0),
17+
False = unchecked((uint)0),
18+
True = unchecked((uint)1),
19+
Frequency = unchecked((uint)0x1007),
20+
Refresh = unchecked((uint)0x1008),
21+
Sync = unchecked((uint)0x1009),
22+
NoError = unchecked((uint)0),
23+
InvalidDevice = unchecked((uint)0xA001),
24+
InvalidContEXT = unchecked((uint)0xA002),
25+
InvalidEnum = unchecked((uint)0xA003),
26+
InvalidValue = unchecked((uint)0xA004),
27+
OutOfMemory = unchecked((uint)0xA005),
28+
MajorVersion = unchecked((uint)0x1000),
29+
MinorVersion = unchecked((uint)0x1001),
30+
AttributesSize = unchecked((uint)0x1002),
31+
AllAttributes = unchecked((uint)0x1003),
32+
DefaultDeviceSpecifier = unchecked((uint)0x1004),
33+
DeviceSpecifier = unchecked((uint)0x1005),
34+
Extensions = unchecked((uint)0x1006),
35+
MonoSources = unchecked((uint)0x1010),
36+
StereoSources = unchecked((uint)0x1011),
37+
CaptureDeviceSpecifier = unchecked((uint)0x310),
38+
CaptureDefaultDeviceSpecifier = unchecked((uint)0x311),
39+
CaptureSamples = unchecked((uint)0x312),
40+
DefaultAllDevicesSpecifier = unchecked((uint)0x1012),
41+
AllDevicesSpecifier = unchecked((uint)0x1013),
42+
ChanMainLOKI = unchecked((uint)0x500001),
43+
ChanPcmLOKI = unchecked((uint)0x500002),
44+
ChanCdLOKI = unchecked((uint)0x500003),
45+
EfxMajorVersion = unchecked((uint)0x20001),
46+
EfxMinorVersion = unchecked((uint)0x20002),
47+
MaxAuxiliarySends = unchecked((uint)0x20003),
48+
Connected = unchecked((uint)0x313),
49+
FormatChannelsSOFT = unchecked((uint)0x1990),
50+
FormatTypeSOFT = unchecked((uint)0x1991),
51+
ByteSOFT = unchecked((uint)0x1400),
52+
UnsignedByteSOFT = unchecked((uint)0x1401),
53+
ShortSOFT = unchecked((uint)0x1402),
54+
UnsignedShortSOFT = unchecked((uint)0x1403),
55+
IntSOFT = unchecked((uint)0x1404),
56+
UnsignedIntSOFT = unchecked((uint)0x1405),
57+
FloatSOFT = unchecked((uint)0x1406),
58+
MonoSOFT = unchecked((uint)0x1500),
59+
StereoSOFT = unchecked((uint)0x1501),
60+
QuadSOFT = unchecked((uint)0x1503),
61+
X5Point1Soft = unchecked((uint)0x1504),
62+
X6Point1Soft = unchecked((uint)0x1505),
63+
X7Point1Soft = unchecked((uint)0x1506),
64+
HrtfSOFT = unchecked((uint)0x1992),
65+
DontCareSOFT = unchecked((uint)0x0002),
66+
HrtfStatusSOFT = unchecked((uint)0x1993),
67+
HrtfDisabledSOFT = unchecked((uint)0x0000),
68+
HrtfEnabledSOFT = unchecked((uint)0x0001),
69+
HrtfDeniedSOFT = unchecked((uint)0x0002),
70+
HrtfRequiredSOFT = unchecked((uint)0x0003),
71+
HrtfHeadphonesDetectedSOFT = unchecked((uint)0x0004),
72+
HrtfUnsupportedFormatSOFT = unchecked((uint)0x0005),
73+
NumHrtfSpecifiersSOFT = unchecked((uint)0x1994),
74+
HrtfSpecifierSOFT = unchecked((uint)0x1995),
75+
HrtfIdSOFT = unchecked((uint)0x1996),
76+
OutputLimiterSOFT = unchecked((uint)0x199A),
77+
DeviceClockSOFT = unchecked((uint)0x1600),
78+
DeviceLatencySOFT = unchecked((uint)0x1601),
79+
DeviceClockLatencySOFT = unchecked((uint)0x1602),
80+
AmbisonicLayoutSOFT = unchecked((uint)0x1997),
81+
AmbisonicScalingSOFT = unchecked((uint)0x1998),
82+
AmbisonicOrderSOFT = unchecked((uint)0x1999),
83+
MaxAmbisonicOrderSOFT = unchecked((uint)0x199B),
84+
Bformat3DSOFT = unchecked((uint)0x1507),
85+
FumaSOFT = unchecked((uint)0x0000),
86+
AcnSOFT = unchecked((uint)0x0001),
87+
Sn3DSOFT = unchecked((uint)0x0001),
88+
N3DSoft = unchecked((uint)0x0002),
89+
OutputModeSOFT = unchecked((uint)0x19AC),
90+
AnySOFT = unchecked((uint)0x19AD),
91+
StereoBasicSOFT = unchecked((uint)0x19AE),
92+
StereoUhjSOFT = unchecked((uint)0x19AF),
93+
StereoHrtfSOFT = unchecked((uint)0x19B2),
94+
Surround5X1Soft = unchecked((uint)0x1504),
95+
Surround6X1Soft = unchecked((uint)0x1505),
96+
Surround7X1Soft = unchecked((uint)0x1506),
97+
ContextFlagsEXT = unchecked((uint)0x19CF),
98+
ContextDebugBitEXT = unchecked((uint)0x0001),
99+
PlaybackDeviceSOFT = unchecked((uint)0x19D4),
100+
CaptureDeviceSOFT = unchecked((uint)0x19D5),
101+
EventTypeDefaultDeviceChangedSOFT = unchecked((uint)0x19D6),
102+
EventTypeDeviceAddedSOFT = unchecked((uint)0x19D7),
103+
EventTypeDeviceRemovedSOFT = unchecked((uint)0x19D8),
104+
EventSupportedSOFT = unchecked((uint)0x19D9),
105+
EventNotSupportedSOFT = unchecked((uint)0x19DA),
106+
}

0 commit comments

Comments
 (0)