Skip to content

Commit

Permalink
General update. Added GameInput. Added DirectSound.
Browse files Browse the repository at this point in the history
  • Loading branch information
smourier committed Oct 20, 2024
1 parent 8d15d02 commit 2256354
Show file tree
Hide file tree
Showing 1,090 changed files with 21,109 additions and 1,765 deletions.
6 changes: 3 additions & 3 deletions DirectN/DirectN.MinimalD3D11/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("3a848cdf-7b72-49de-92f7-30b640369d75")]

[assembly: AssemblyVersion("1.16.1.3")]
[assembly: AssemblyFileVersion("1.16.1.3")]
[assembly: AssemblyInformationalVersion("1.16.1.3")]
[assembly: AssemblyVersion("1.17.0.0")]
[assembly: AssemblyFileVersion("1.17.0.0")]
[assembly: AssemblyInformationalVersion("1.17.0.0")]

[assembly: SupportedOSPlatform("windows10.0.19041.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("99873e46-b92d-47ce-b5be-d453cad3895b")]

[assembly: AssemblyVersion("1.16.1.3")]
[assembly: AssemblyFileVersion("1.16.1.3")]
[assembly: AssemblyInformationalVersion("1.16.1.3")]
[assembly: AssemblyVersion("1.17.0.0")]
[assembly: AssemblyFileVersion("1.17.0.0")]
[assembly: AssemblyInformationalVersion("1.17.0.0")]

[assembly: SupportedOSPlatform("windows10.0.19041.0")]
781 changes: 743 additions & 38 deletions DirectN/DirectN/DirectN.csproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion DirectN/DirectN/Extensions/IMFAttributesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static IEnumerable<IMFActivate> EnumDeviceSources(this IMFAttributes inpu
if (input == null)
throw new ArgumentNullException(nameof(input));

Functions.MFEnumDeviceSources(input, out var array, out var count).ThrowOnError();
Functions.MFEnumDeviceSources(input, out IntPtr array, out var count).ThrowOnError();
for (var i = 0; i < count; i++)
{
var ptr = Marshal.ReadIntPtr(array, i * IntPtr.Size);
Expand Down
10 changes: 5 additions & 5 deletions DirectN/DirectN/Extensions/MFFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class MFFunctions
public static void MFStartup() => MFStartup((Constants.MF_SDK_VERSION << 16) | Constants.MF_API_VERSION, Constants.MFSTARTUP_FULL).ThrowOnError();

[DllImport("mfplat", ExactSpelling = true)]
public static extern HRESULT MFTRegisterLocal(IClassFactory pClassFactory, [MarshalAs(UnmanagedType.LPStruct)] Guid guidCategory, [MarshalAs(UnmanagedType.LPWStr)] string pszName, _MFT_ENUM_FLAG Flags, uint cInputTypes, __MIDL___MIDL_itf_mfobjects_0000_0008_0003[] pInputTypes, uint cOutputTypes, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] __MIDL___MIDL_itf_mfobjects_0000_0008_0003[] pOutputTypes);
public static extern HRESULT MFTRegisterLocal(IClassFactory pClassFactory, [MarshalAs(UnmanagedType.LPStruct)] Guid guidCategory, [MarshalAs(UnmanagedType.LPWStr)] string pszName, _MFT_ENUM_FLAG Flags, uint cInputTypes, __MIDL___MIDL_itf_mfobjects_0000_0009_0003[] pInputTypes, uint cOutputTypes, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] __MIDL___MIDL_itf_mfobjects_0000_0009_0003[] pOutputTypes);

[DllImport("mfplat", ExactSpelling = true)]
public static extern HRESULT MFTUnregisterLocal(IClassFactory pClassFactory);
Expand Down Expand Up @@ -184,8 +184,8 @@ public static IComObject<T> MFCreateDXGIDeviceManager<T>(out uint resetToken) wh
public static extern HRESULT MFTEnumEx(
Guid guidCategory,
_MFT_ENUM_FLAG Flags,
ref __MIDL___MIDL_itf_mfobjects_0000_0008_0003 pInputType,
ref __MIDL___MIDL_itf_mfobjects_0000_0008_0003 pOutputType,
ref __MIDL___MIDL_itf_mfobjects_0000_0009_0003 pInputType,
ref __MIDL___MIDL_itf_mfobjects_0000_0009_0003 pOutputType,
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] out IMFActivate[] pppMFTActivate,
out int pnumMFTActivate);

Expand All @@ -194,7 +194,7 @@ public static extern HRESULT MFTEnumEx(
Guid guidCategory,
_MFT_ENUM_FLAG Flags,
IntPtr pInputType,
ref __MIDL___MIDL_itf_mfobjects_0000_0008_0003 pOutputType,
ref __MIDL___MIDL_itf_mfobjects_0000_0009_0003 pOutputType,
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] out IMFActivate[] pppMFTActivate,
out int pnumMFTActivate);

Expand All @@ -207,7 +207,7 @@ public static extern HRESULT MFTEnumEx(
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] out IMFActivate[] pppMFTActivate,
out int pnumMFTActivate);

public static IReadOnlyList<ComObject<IMFActivate>> MFTEnumEx(Guid categoryId, _MFT_ENUM_FLAG flags, __MIDL___MIDL_itf_mfobjects_0000_0008_0003? inputType = null, __MIDL___MIDL_itf_mfobjects_0000_0008_0003? outputType = null)
public static IReadOnlyList<ComObject<IMFActivate>> MFTEnumEx(Guid categoryId, _MFT_ENUM_FLAG flags, __MIDL___MIDL_itf_mfobjects_0000_0009_0003? inputType = null, __MIDL___MIDL_itf_mfobjects_0000_0009_0003? outputType = null)
{
using (var it = new ComMemory(inputType))
using (var ot = new ComMemory(outputType))
Expand Down
1 change: 1 addition & 0 deletions DirectN/DirectN/Generated/APO_NOTIFICATION_TYPE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ public enum APO_NOTIFICATION_TYPE
APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME2 = 4,
APO_NOTIFICATION_TYPE_DEVICE_ORIENTATION = 5,
APO_NOTIFICATION_TYPE_MICROPHONE_BOOST = 6,
APO_NOTIFICATION_TYPE_AUDIO_ENVIRONMENT_STATE_CHANGE = 7,
}
}
1 change: 1 addition & 0 deletions DirectN/DirectN/Generated/APO_NOTIFICATION__union_0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ public partial struct APO_NOTIFICATION__union_0
public AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2 audioEndpointVolumeChange2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => InteropRuntime.Get<AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2>(__bits, 0, 128); [MethodImpl(MethodImplOptions.AggressiveInlining)] set { if (__bits == null) __bits = new byte[64]; InteropRuntime.Set<AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2>(value, __bits, 0, 128); } }
public DEVICE_ORIENTATION_TYPE deviceOrientation { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => InteropRuntime.Get<DEVICE_ORIENTATION_TYPE>(__bits, 0, 32); [MethodImpl(MethodImplOptions.AggressiveInlining)] set { if (__bits == null) __bits = new byte[64]; InteropRuntime.Set<DEVICE_ORIENTATION_TYPE>(value, __bits, 0, 32); } }
public AUDIO_MICROPHONE_BOOST_NOTIFICATION audioMicrophoneBoostChange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => InteropRuntime.Get<AUDIO_MICROPHONE_BOOST_NOTIFICATION>(__bits, 0, 448); [MethodImpl(MethodImplOptions.AggressiveInlining)] set { if (__bits == null) __bits = new byte[64]; InteropRuntime.Set<AUDIO_MICROPHONE_BOOST_NOTIFICATION>(value, __bits, 0, 448); } }
public AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION audioEnvironmentChange { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => InteropRuntime.Get<AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION>(__bits, 0, 256); [MethodImpl(MethodImplOptions.AggressiveInlining)] set { if (__bits == null) __bits = new byte[64]; InteropRuntime.Set<AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION>(value, __bits, 0, 256); } }
}
}
9 changes: 9 additions & 0 deletions DirectN/DirectN/Generated/APO_REFERENCE_STREAM_PROPERTIES.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// generated from <Windows SDK Path>\um\audioenginebaseapo.h
namespace DirectN
{
public enum APO_REFERENCE_STREAM_PROPERTIES
{
APO_REFERENCE_STREAM_PROPERTIES_NONE = 0,
APO_REFERENCE_STREAM_PROPERTIES_POST_VOLUME_LOOPBACK = 1,
}
}
1 change: 1 addition & 0 deletions DirectN/DirectN/Generated/AUDCLNT_STREAMOPTIONS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ public enum AUDCLNT_STREAMOPTIONS
AUDCLNT_STREAMOPTIONS_RAW = 0x00000001,
AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x00000002,
AUDCLNT_STREAMOPTIONS_AMBISONICS = 0x00000004,
AUDCLNT_STREAMOPTIONS_POST_VOLUME_LOOPBACK = 0x00000008,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// generated from <Windows SDK Path>\um\audioengineextensionapo.h
using System;
using System.Runtime.InteropServices;
using PROPERTYKEY = DirectN._tagpropertykey;

namespace DirectN
{
[StructLayout(LayoutKind.Sequential)]
public partial struct AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION
{
public IntPtr propertyStore;
public PROPERTYKEY propertyKey;
}
}
12 changes: 12 additions & 0 deletions DirectN/DirectN/Generated/AcousticEchoCanceller_Reference_Input.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// generated from <Windows SDK Path>\um\audioengineextensionapo.h
using System.Runtime.InteropServices;

namespace DirectN
{
[StructLayout(LayoutKind.Sequential)]
public partial struct AcousticEchoCanceller_Reference_Input
{
public APOInitSystemEffects3 apoInitSystemEffects;
public APO_REFERENCE_STREAM_PROPERTIES streamProperties;
}
}
2 changes: 2 additions & 0 deletions DirectN/DirectN/Generated/AudioObjectType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ public enum AudioObjectType
AudioObjectType_BottomBackLeft = 0x00008000,
AudioObjectType_BottomBackRight = 0x00010000,
AudioObjectType_BackCenter = 0x00020000,
AudioObjectType_StereoLeft = 0x00040000,
AudioObjectType_StereoRight = 0x00080000,
}
}
Loading

0 comments on commit 2256354

Please sign in to comment.