版本

    其他文档

menu_open
Wwise SDK 2023.1.2

◆ SetCurrentLanguage()

AKSOUNDENGINE_API AKRESULT AK::StreamMgr::SetCurrentLanguage ( const AkOSChar in_pszLanguageName)

Set the current language once and only once, here. The language name is stored in a static buffer inside the Stream Manager. In order to resolve localized (language-specific) file location, AK::StreamMgr::IAkFileLocationResolver implementations query this string. They may use it to construct a file path (for e.g. SDK/samples/SoundEngine/Common/AkFileLocationBase.cpp), or to find a language-specific file within a look-up table (for e.g. SDK/samples/SoundEngine/Common/AkFilePackageLUT.cpp). Pass a valid null-terminated string, without a trailing slash or backslash. Empty strings are accepted. You may register for language changes (see RegisterToLanguageChangeNotification()). After changing the current language, all observers are notified.

返回
AK_Success if successful (if language string has less than AK_MAX_LANGUAGE_NAME_SIZE characters). AK_Fail otherwise.
警告
Not multithread safe.
参见
参数
in_pszLanguageNameLanguage name.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅