版本
menu_open
Wwise SDK 2023.1.2
版本控制插件例程

基本版本控制插件示例

此版本控制插件通过一些基本操作演示简单配置对话框。它显示文件的状态和 Project Explorer 图标。注意,它并不以任何实际的版本控制系统为基础,仅用作了解 Wwise 中版本控制插件工作原理的基础工程和创建您自己插件的参考。

位置:"samples\SourceControl\SourceControlSample"

实现导出函数的 DLL 接口的源代码和包含要导出的函数的定义文件可参见:

  • SourceControlSample/DllInterface.cpp
  • SourceControlSample/SourceControlSample.def

AK::Wwise::ISourceControl 实现可参见:

  • SourceControlSample/SamplePlugin.cpp
  • SourceControlSample/SamplePlugin.h

配置对话框的实现可参见:

  • SourceControlSample/DlgConfiguration.cpp
  • SourceControlSample/DlgConfiguration.h

Perforce 版本控制插件示例

这是 Wwise 中默认包含的 Perforce 插件。它可以让您在 Wwise 设计工具中执行 Perforce 操作。其中包含完整的源代码,为您提供版本控制插件的完整示例,如果您愿意,还可用来自定义和增强此插件。

Location: SDK/samples/SourceControl/Perforce

如何创建 Perforce 版本控制插件示例

在为 Wwise 构建 Perforce 插件之前,必须安装 Perforce C++ API 和 OpenSSL 文件,并将其放在正确的位置:

  1. Download the Helix Core C/C++ API for Windows (x64) libraries from the Perforce FTP. The version used to build the plug-in included with Wwise is p4api_vs2019_static_openssl3.zip (version 2023.1/2468153).
  2. Create the following directory: "[Wwise Installation Root]/Authoring/source/3rdParty/Perforce/windows"
  3. Extract the content of p4api-<version>-<configuration>/lib to: [Wwise Installation Root]/Authoring/source/3rdParty/Perforce/windows/lib
  4. Extract the content of p4api-<version>-<configuration>/include to: [Wwise Installation Root]/Authoring/source/3rdParty/Perforce/windows/include
备注: The Helix C/C++ API archive contains only release libraries. For this reason, a debug build of the plug-in uses the release CRT library and (DEBUG, _DEBUG) are not defined.
  1. Download the OpenSSL 3.1.1 binaries and libraries Windows (x64) from https://download.firedaemon.com/FireDaemon-OpenSSL/openssl-3.1.1.zip. Current version is OpenSSL 3.1.1 (git commit openssl-3.1.1-0-g2cf4e90eaa).
  2. Extract the binaries (libcrypto-3-x64.dll, libssl-3-x64.dll) to: [Wwise Installation Root]\Authoring\source\3rdParty\OpenSSL\bin
  3. Extract the libraries (libcrypto.lib, libssl.lib) to: [Wwise Installation Root]\Authoring\source\3rdParty\OpenSSL\lib

You should now be able to open the Perforce plug-in's project (SDK/samples/SourceControl/Perforce/Perforce.vcxproj) and build the plug-in. 请参阅 版本控制插件 了解有关 Wwise 版本控制插件 API 和安装的信息。

备注: 为了使用不同版本的 Perforce 创建,可能需要对代码或工程进行一些修改。

Subversion 版本控制插件示例

这是 Wwise 中默认包含 的 Subversion 插件。它可以让您在 Wwise 设计工具中执行 Subversion 操作。其中包含完整的源代码,可以为您提供版本控制插件的完整示例。如果您愿意,可以通过包含此源代码来自定义和增强此插件。

Location: SDK/samples/SourceControl/Subversion

如何创建 Subversion 版本控制插件示例

Open the Subversion plug-in's project (SDK/samples/SourceControl/Subversion/Subversion.vcxproj) and build the plug-in. 请参阅 版本控制插件 了解有关 Wwise 版本控制插件 API 和安装的信息。

备注: Wwise 发行版中包含的 Subversion 插件是使用 Subversion 1.8.5 创建的。为了使用不同版本的 Subversion 创建,可能需要对代码或工程进行一些修改。
备注: Subversion 插件的 Debug 版配置使用非 Debug 版运行时库,以避免 Subversion 库和插件之间存在内存分配问题。

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅