Comments (3)
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.
Note this setup issue is also covered in the Adding the DirectX Tool Kit for Audio tutorial lesson.
from directxtk.
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)
- Retire legacy Xbox One XDK support
- NonPremultiplied has to be used in the Begin() function. HOT 1
- App.cpp and App.h for UWP DeviceResources HOT 1
- xaudio2 XAUDIO2_E_DEVICE_INVALIDATED HRESULT not handled HOT 16
- Make use of C++/WinRT when building for C++17
- ARM64 version of xwbtool HOT 3
- `MapGuard` undefined behavior after move HOT 3
- DirectX Tool Kit for DX9
- DrawLine line thickness HOT 1
- Mesh Outline Effect HOT 2
- Point Light Shader HOT 2
- Clarify required WinSDK version HOT 2
- Hard fps lock to refresh rate value in fullscreen games - Win11 22H2 (DX11) HOT 2
- XWBtool makes all wav files the same name after repackaging HOT 5
- Audio: how to set distance attenuation/fall-off? HOT 4
- darker images loading HOT 1
- Request/question: Add a Vector4/floating point overload for the spritebatch's draw function
- undefined data type in PostProcess method HOT 3
- Aa
- Should Mouse use WM_MOUSELEAVE for Win32 raw input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxtk.