Version
menu_open
Wwise SDK 2019.2.15

◆ CONVERT_OSCHAR_TO_CHAR

#define CONVERT_OSCHAR_TO_CHAR (   _osstring_,
  _astring_ 
)    _astring_ = (char*)_osstring_

Converts a AkOSChar string into char string.

Remarks
On some platforms the AkOSChar string simply points to the same string, on others a new buffer is allocated on the stack using AkAlloca. This means you must make sure that:
  • The source string stays valid and unmodified for as long as you need the AkOSChar string (for cases where they point to the same string)
  • The AkOSChar string is used within this scope only – for example, do NOT return that string from a function (for cases where it is allocated on the stack)

Definition at line 492 of file AkPlatformFuncs.h.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise