Giter Club home page Giter Club logo

Comments (3)

walbourn avatar walbourn commented on May 12, 2024

This is covered in the wiki.

If you are building an app with Windows 7 or Windows Vista compatibility, then _WIN32_WINNT is set to 0x0601 or 0x0600. In that case, you must use the legacy DirectX SDK to get a version of XAudio that is compatible with the target operating system. To resolve the error you are getting, you have to add the DirectX SDK include paths to your projects VC++ Directories--be sure to add it after the existing paths and not before. This is because the old XAudio 2.7 headers use comdecl.h. You must make sure you are using the appropriate _DXSDK vcxproj files so that you are using the XAudio 2.7 version of DirectXTK.

Alternatively, you can set your application to build with _WIN32_WINNT set to 0x0602 (Windows 8.0), 0x0603 (Windows 8.1), or 0x0A00 (Windows 10) which will make use of the XAudio 2.8 or XAudio 2.9 built into the Windows SDK. You need to make sure you are using the appropriate _Win8 or _Win10 vcxproj file so your DirectXTK is built to match.

from directxtk.

walbourn avatar walbourn commented on May 12, 2024

Note this setup issue is also covered in the Adding the DirectX Tool Kit for Audio tutorial lesson.

from directxtk.

giordi91 avatar giordi91 commented on May 12, 2024

Thanks a lot, I actually ended up on that page before, but for some reason I was convinced I needed Xaudio2.7. I am gonna try to compile when I get to my computer and let you know.

M.

from directxtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.