amerkoleci / Vortice.Windows

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

Update AudioBuffer.cs #340

Closed Gavin-Williams closed 2 years ago

Gavin-Williams commented 2 years ago

Fixed a bug in the static Create method where memory allocation was being provided data length when it requires size in bytes. Because the data is generic, sizeInBytes is the correct value to provide, and it is already calculated in the method.