Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote

Hi everyone, I'm writing because I'm trying to integrate Wwise in a simple empty c++ project (VS2015) for learn purpose, but I've got an error when i try to compile the complete InitSoundEngine() function ("Initialize the Different Modules of the Sound Engine ") .

THIS ERROR ---> Error C2664 'DWORD GetFileAttributesA(LPCSTR)': can not convert argument 1 'const AkOSChar *' to 'LPCSTR'

VS tells me the error is in the AkFileHelpers.h at line 180 //////   fileAttributes = GetFileAttributes(in_pszBasePath)

This is very strange because I already checked the box "Treat wchar_t as Built-in type" in project-settings.

An user of StackOverflow suggests me to modify the box "Character Set" (project-settings->general) from "multibyte " to "unicode", but at compile-time an ENORMOUS amount of errors overwhelm me !!!

Something like this -> LNK2019 reference to external symbol "public: __thiscall CAkDefaultIOHookBlocking :: CAkDefaultIOHookBlocking (void)" (?? 0CAkDefaultIOHookBlocking @@ QAE @ XZ) not solved in the function "void __cdecl` dynamic initializer for 'g_lowLevelIO' '(void) "(?? __ Eg_lowLevelIO @@ YAXXZ)

All the errors are referred to things included from folder "samples" contained in the SDK.

I hope someone cane help me, thanks in advance !!!

Mattia

 

 

in General Discussion by Mattia P. (110 points)
Forgive the 2 year bump, but did you ever find a fix for this? I'm running into the same issue (Visual Studio 2017, x64 build)

1 Answer

0 votes
In case anyone else sees this, the issue for me was that the "Character Set" property in Visual Studio was set to "Use Multi-Byte Character Set". Changing it to Unicode fixed the issue.
by Daniel Pezdirc (140 points)
...