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

Add XAudio2 sample 'HelloXAudio2' #341

Closed Gavin-Williams closed 2 years ago

Gavin-Williams commented 2 years ago

A minimalist sample demonstrating how to initialize XAudio2, load a wave file into an AudioBuffer and play it.

amerkoleci commented 2 years ago

Thanks!

There is also this example: https://github.com/amerkoleci/Vortice.Windows.Samples/blob/main/src/XAudio2/PlaySound/Program.cs

Gavin-Williams commented 2 years ago

Oh, is that the main place for samples? Should I be looking there first? Sorry, I didn't think of that project, even though you have linked me to it before.

amerkoleci commented 2 years ago

It's more bigger container of samples, It's fine to have basic examples in main repo as well