menu
 
版本
2024.1.4.8780

2024.1.4.8780

2023.1.12.8706

2022.1.18.8567

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624


menu_open

Using Wwise with your source control system

所有 Wwise 工程文件(包括各个 Work Unit)都基于 XML。所以,用户可使用版本控制系统轻松管理这些文件。建议将某些(并非全部)文件添加到版本控制系统。

File Manager(文件管理器)中的所有文件都可添加到版本控制系统。Wwise 会使用这些文件生成工程所需的其他文件。建议将以下内容添加到版本控制系统:

  • .wproj —— Wwise 工程文件。这些文件存放在工程文件夹的根目录下。

  • .wwu – Wwise Work Unit。这些文件存放在主工程文件夹的子目录下。

  • Originals folder - The original media files. These files are used to create the final audio assets of a project.

总的来说,Wwise 生成的文件可以放在版本控制系统之外。因为没必要将它们添加到版本控制系统,而且在多用户环境下共享某些文件可能会导致同步问题。建议将以下内容放在版本控制系统之外:

  • .backup 文件夹 – 在使用新的 Wwise 大版本打开工程时,会对工程进行升级并生成 .backup 文件夹。这样是为了在需要时将工程恢复为升级之前的状态。若将工程添加到了版本控制系统,则可藉此恢复为升级之前的状态。为此,可将 .backup 文件夹放在版本控制系统之外。

  • .cache 文件夹 – 工程目录下的 .cache 文件夹是 Wwise 的本地工作文件夹。.cache 文件夹的内容不得添加到版本控制系统,因为这可能造成 Wwise 中发生异常行为。

  • .prof – 这些文件在每次捕获时生成,其并非工程数据的一部分。

  • .validationcache – 这些文件由 .wwu 文件生成,可放在版本控制系统之外。

  • .wsettings – 此文件特定于本地用户和电脑。

  • IncrementalSoundBankData.xml – 此文件用于根据 Wwise 工程的本地内容和本地 SoundBank 生成记录来追踪 SoundBank 的状态。

Note that .gitignore and .p4ignore files are included when creating a new project. 下面有个示例 .gitignore 文件:

# Wwise
.backup*
.cache*
*.akd
*.prof
*.validationcache
*.wsettings
IncrementalSoundBankData.xml

您可以随时通过工程来生成 SoundBank。不过,若有不使用 Wwise 的团队成员,则其需要这些生成的文件来在开发当中试玩游戏时试听声音。借助版本控制系统,团队成员可以访问这些文件。若有不止一个 Wwise 用户将 SoundBank 添加到版本控制系统,这些文件可能会不同步。为了避免这种情况,请将所有.bnk 和 .wem 文件添加到 soundbanks/ 路径下。鉴于 Wwise 与游戏引擎的集成方式各不相同,可能还要添加 .txt、.xml 和 .json 文件。

工程中的大文件可能还要进行特别处理以便节省时间(比如使用 Git LFS)。通过 Git LFS 放在版本控制系统之外的文件可能包括大的二进制文件(如 .wav、.aif、.png 和 .jpg)。

在游戏的整个开发过程中,都可在 File Manager 中查看工程文件 (.wproj)、Work Unit 文件 (.wwu) 和音频文件的状态。If you are using the Perforce, Subversion, or another source control plug-in, you can perform source control functions directly in Wwise. For more information about using a source control plug-in in Wwise, refer to “Managing project files with a source control plug-in”一节.

By default Wwise saves Work Unit files, SoundBank files and some project files with LF line endings. Wwise can save them with CRLF endings. See Line Ending in the “General 选项卡”一节 of the Project Settings.

When you are working as part of a team and are using a source control system to manage the files in your project, you should always be aware that others are working on the same project and that there may be merge conflicts that need to be resolved. 因此,经常同步和合并您的工作,并频繁与团队成员沟通交流您正在做的工作非常重要。有关经验总结的完整列表,请参阅“Source control tips and best practices”一节


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅