windows - Using XAudio2 in C -


i working on c program using visual studio 2015 on windows 10. when include xaudio2.h few hundred compiler errors, believe errors stem one:

error c2485 'uuid': unrecognized extended attribute

is there anyway xaudio2 working c application?

in short, latest versions of xaudio2 (xaudio 2.8 in windows 8.x sdk, xaudio 2.9 in windows 10 sdk) don't support c, c++.

the older xaudio 2.7 deprecated directx sdk builds c, although it's had no testing c. in fact, directx usage c rather c++ hasn't been tested or supported in very, long time. midl compiler used generating com interface headers still has lot of c-related support macros , elements when c usage first-class citizen, stuff in "as is" state gets little no test coverage.

you can continue frustrate yourself, can wrap c++ code in own c callable wrapper, or start using c++.

see this post , this post important information using vs 2015 legacy directx sdk.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -