amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
992 stars 73 forks source link

X3DAudio LoopInfinite missing from Vortice.XAudio2 1.8.41 #104

Closed h1cks closed 3 years ago

h1cks commented 3 years ago

Describe the bug LoopInfinite constant is not generated into the IXAudio2.cs file (from my investigations) - Vortice.XAudio2 1.8.41

I haven't pulled project and compiled myself.

To Reproduce Steps to reproduce the behavior:

code sample: _targetBuffer.LoopCount = IXAudio2.LoopInfinite;

Please close if its just that the constant is generating in the code base, but the latest version doesnt reflect the addition.

amerkoleci commented 3 years ago

Somehow it ended being generated as part of AudioBuffer, now its fixed.

amerkoleci commented 3 years ago

Version 1.8.46 contains the fix as well the D3D12 Video support added.

h1cks commented 3 years ago

Cheers, I will be looking into generating the DirectInput and Media Factory bindings over the next couple of days. I set up Directinput in my fork, spent a few hours on it. if I figure out the issue with Joystick State, I will clean up the code and submit a PR. But I feel that im modelling alot of it on the old Sharpdx approach, so may need your thoughts. Appreciate your work on everything, no hurry at the moment.

h1cks commented 3 years ago
<const from-macro="XAUDIO2_LOOP_INFINITE" type="int" cpp-type="int" name="LoopInfinite" class="Vortice.IXAudio2.IXAudio2" visibility="public const" />

needs to be,

<const from-macro="XAUDIO2_LOOP_INFINITE" type="int" cpp-type="int" name="LoopInfinite" class="Vortice.XAudio2.IXAudio2" visibility="public const" />

Typo. IXAudio2 = XAudio2

h1cks commented 3 years ago

@amerkoleci - cant reopen ticket, but issue is just a typo.

amerkoleci commented 3 years ago

Done, thanks!