Cube Demo 数据包包含以下组件:
Audiokinetic 的 Debug、Profile 和 Release 版《Cube》游戏。
用于修改声音并将其添加到游戏中的 Wwise 工程。
《Cube》游戏引擎源代码和文档。
![]() | Note |
---|---|
内容提供商发来的素材最初都是高品质的(48 kHz/16 或 24 位)。不过,为了节省下载时间和磁盘空间,有些声音素材的大小被减小了。 |
In the Audiokinetic Launcher, select the Samples page.
Click Cube from the list of samples.
Select a version and click Install.
The list of requirements installed with Cube is displayed.
Click Install.
Confirm both the Wwise and Cube target directories and then click Install again.
The version of Cube you installed is displayed under Installed Versions. For more information about options on the Cube page, see Samples in the Audiokinetic Launcher guide.
To run your installed version of Cube, click Run Cube.
For various reasons, you might prefer to run Cube without the Launcher. 对此,我们有替代的方式。不过,会因运行平台(Mac 或 Windows)而略有差异。
在 Mac OS X 上
![]() | Note |
---|---|
在开始之前,确保在 Wwise 安装期间选中 SDK (C++) 和 macOS 来安装 Wwise SDK for Mac。若要将这些选项添加到现有 Wwise 安装包,请转到 Launcher 的 Wwise 页面,然后点击安装包右侧的扳手按钮并选择 Modify...。 ![]() |
方法 1:使用 Shell 脚本。
确保解压后的 Cube Demo 文件夹与安装的 Wwise SDK Mac 分发包共用同一父文件夹。比如,若 Wwise SDK 文件夹为 ${HOME}/Wwise/wwise_${version_tag}/SDK,则 Cube Demo 根文件夹须为 ${HOME}/Wwise/wwise_${version_tag}/CubeDemo。
在以下位置找到可执行 Shell 脚本:$Applications/Audiokinetic/<Wwise_version>/Cube/Mac/<mode>/bin/RunCubeDemo.sh。其中,<mode> 对应于相应的模式文件夹(Debug、Profile 或 Release)。
若 .sh 文件配置为通过 Terminal 打开,请在 Finder 中双击这些文件。否则,请在 Shell 脚本的目录中打开 Terminal,然后键入 RunCubeDemo.sh 并按下 Enter。
方法 2:在 Xcode 下运行。
确认是否已安装 Xcode。若 Applications 文件夹中没有 Xcode,请从 Mac App Store 下载并予以安装。
确保解压后的 Cube Demo 文件夹与安装的 Wwise SDK macOS 分发包共用同一父文件夹。比如,若 Wwise SDK 文件夹为 ${HOME}/Wwise/wwise_${version_tag}/SDK,则 Cube Demo 根文件夹须为 ${HOME}/Wwise/wwise_${version_tag}/CubeDemo。
在 Xcode 中,打开以下 Xcode 工程:/path/to/CubeDemo/cube_source/src/Mac/CubeMac.xcodeproj。
构建并运行工程。
在 Windows 上
方法 1:使用 BAT 脚本。
在通过 Audiokinetic Launcher 安装 Cube Demo 后,会在 <WwiseRoot>\Cube\cube 文件夹中创建 BAT 文件。在 File Explorer 中打开此文件夹。
双击与要运行的 Cube Demo 版本对应的 BAT 文件:Debug、Profile 或 Release 模式。或者,打开 Command Prompt 窗口,然后键入 BAT 文件的路径并按下 Enter。
方法 2:通过 Command Prompt 运行可执行文件。
找到并运行 cube.exe 可执行文件。该文件可在 <WwiseRoot>\Cube\Win32\<mode>\bin 下找到。其中,<mode> 对应于相应的模式文件夹(Debug、Profile 或 Release)。