版本
menu

Wwise SDK 2025.1.2
ak.wwise.core.mediaPool.getFields

Retrieve all fields present in the Media Pool. You can then use the fields to query the Media Pool. The Media Pool discovers some fields when it scans audio files. Others, such as WAV fields, are always available.

Result

名称 类型 说明
return array The list of fields available to use in Media Pool queries.
return [...]

The field name.

Any of:

string Filename : The name of the file, including the extension.
string WAV/Duration : The duration of the file in seconds.
string WAV/Sample Rate : The sample rate of the audio file in Hz.
string WAV/Bit Depth : The bit depth of the audio file. Possible values are 8, 16, 24, or 32.
string WAV/Channels : The number of channels of the audio file.
string WAV/Channel Configuration : The channel configuration of the audio file, such as '1.0', '2.0', '5.1', '7.1.4', etc.
string WAV/Data Size : The size of the audio data in bytes.
string WAV/Loop Start : The position in seconds where the audio file loop starts.
string WAV/Loop End : The position in seconds where the audio file loops back to the start.
string WAV/Marker Count : The number of markers in the audio file.
string WAV/Samples : The number of samples in the audio file, for one channel.
string Other fields found in the IXML chunk of the file. Use ak.core.mediaPool.getFields to get the list of supported fields.

Result Schema

See Also

Examples

有关 Wwise Authoring API 的详细信息,请参阅 使用 Wwise Authoring API(WAAPI) 章节。


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅