Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Tier2: syntax error: identifier 'AUDIO_STREAM_CATEGORY' when trying to build tier2 library

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Feb 2021 00:48 Edited at: 10th Nov 2021 00:22
I am trying to build a Tier2 library using VS2017
I have used nuget to install the Microsoft Xaudio2 for the xaudio2.h include but i am getting the following error
syntax error: identifier 'AUDIO_STREAM_CATEGORY' in WindowCore.cpp at this piece of code (Around line 510)



Does anyone know how i might solve this issue?

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 7th Feb 2021 07:24
AUDIO_STREAM_CATEGORY is defined in audiosessiontypes.h (include Audioclient.h) thist is supported in winsdk-10.
Perhaps you should change the common project settings of the Windows SDK version to 10.x.xxxxx.x.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Feb 2021 22:38 Edited at: 7th Feb 2021 22:38
Thank you very much for your response Mr Bit.
Could you proint me to where in Visual Studio i can make that change?

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 8th Feb 2021 18:22
Right Click your Project.


Choose properties.


Under Common, in the right half of the window, you can set the sdk version.

Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Feb 2021 19:30 Edited at: 8th Feb 2021 19:33
Unfortunately my vs2015 does not have that option.
Traget platform has no topions as does target platform version

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 8th Feb 2021 20:23
This is because of the Windows XP support in the Platform Toolset option. (Same window 7 line down)
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Feb 2021 22:26 Edited at: 8th Feb 2021 22:27
Thanks again for helping me out Mr Bit. I really appreciate it

Do you know which option i should select?

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 9th Feb 2021 04:47
What you have chosen is ok.
But didn't you say you were using VS 2017?
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Feb 2021 06:50
I have the same issues with both.
When i try change the Windows SDK version on vs2017 it won't let me change it to anyting other than 7.0
I have installed windows SDK 10.0
I am at a loss. I would normally completely uninstalll everything and reinstall but i have other development SDK's that i need

I will see if i can manage a complete uninstall/reinstall.

Thank you very much for your help
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 25th Feb 2021 22:25
Hey blinkok, The issue is DirectX, install the DXSDK and it will compile, a tonne of warnings but no errors

Did you follow the guide?

How-to-compile-AppGameKit-Tier2-libraries

I was getting the same results as you, then I read the guide lol
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 26th Feb 2021 00:47
I thought i did.
I will try that.
Is that 2015 or 2017?
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 26th Feb 2021 02:07
it works for both versions, once the DX paths are set your good to go.
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 26th Feb 2021 04:34
XAudio2 within the Windows SDK (which includes DirectX 10 in Windows 7 onward) is different to XAudio2 in the DirectX 9 SDK.
Functionally they're the same, but they're defined / initialised differently meaning they're not compatible without changing the references...

This is actually fine in Dark BASIC Professional (GameGuru) Source, as you have access to said definitions; but with AppGameKit "Tier 2" all of that is handled within the Platform Static Lib.
Although if you look at Common.h., every OTHER Platform clearly uses OpenAL; which Windows could also be using.

Why they've made extra work for themselves by using XAudio on Windows is baffling to me.
I mean if they're going to rewrite the Audio Backend to be Windows Specific., why not switch to using DirectX 12 instead of Vulkan for the Graphics, Maths, etc.?

Yet even still the fact that they rely on a Deprecated VERSION of the DirectX SDK (which as noted is now part of the Windows SDK, with XAudio Support still; but it's handled differently to load), well that just has me scratching my head more.
The reliance of the DBP Source on the DirectX 9 SDK is one of the key factors that makes it SO difficult to simply Open > Build the Source., as that SDK isn't exactly "Compatible" with Visual Studio 2015 onward or Windows 8 onward.
But at least there it makes sense, as it was built on that and changing it is a MAJOR rewrite of the Code... as you essentially rewriting huge chunks of almost every Library and the Core.

Where-as for AGK... I can't imagine it'd be more than a 30min Fix to switch to either the Windows SDK version of XAudio.h, or OpenAL.

Login to post a reply

Server time is: 2024-04-19 05:45:32
Your offset time is: 2024-04-19 05:45:32