版本
menu

Wwise SDK 2025.1.2
AkCmd_ControlOutputCapture结构体 参考

#include <AkCommandTypes.h>

Public 属性

AkUInt32 isEnabled
 Whether the Sound Engine should capture the audio output to a file. 更多...
 

详细描述

Starts or stops recording the sound engine audio output.

The capture system outputs a wav file per current output device of the sound engine. If more than one device is active, the system will create multiple files in the same output directory and will append numbers at the end of the provided filename.

If no device is running yet, the command will return success AK_Success despite doing nothing. Use AK::SoundEngine::RegisterAudioDeviceStatusCallback to get notified when devices are created/destructed.

备注
The sound engine opens a stream for writing using AK::IAkStreamMgr::CreateStd(). If you are using the default implementation of the Stream Manager, file opening is executed in your implementation of the Low-Level IO interface AK::StreamMgr::IAkLowLevelIOHook::BatchOpen(). The following AkFileSystemFlags are passed: uCompanyID = AKCOMPANYID_AUDIOKINETIC and uCodecID = AKCODECID_PCM, and the AkOpenMode is AK_OpenModeWriteOvrwr. See 文件位置解析 for more details on managing the deployment of your Wwise generated data.

When isEnabled is set, the Sound Engine expects a string to follow the command representing the name of the file to write. For example:

auto cmd = (AkCmd_ControlOutputCapture*)AK_CommandBuffer_Add(buffer, AkCommand_ControlOutputCapture);
cmd->isEnabled = 1;
AK_CommandBuffer_AddString(buffer, "myrecording.wav");

This command can fail for the following reasons:

在文件 AkCommandTypes.h1155 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅