版本

menu_open
Wwise SDK 2023.1.4
ak.wwise.debug.generateToneWAV

Generate a WAV file playing a tone with a simple envelope and save it to the specified location. This is provided as a utility to generate test WAV files.

Arguments

名称 类型 说明
path * string File path to write the generated WAV file. This path normally uses the file extension WAV.
bitDepth string Bit depth of the audio file. Default is int16. 可能的值:
  • int16
  • float32
sampleRate number Sample rate of the audio file. Default is 48000 Range: [300,192000]
channelConfig string Channel configuration of the audio file. Default is 1.0. Please use the silence waveform for the ambisonics configurations, as the other tone signals will be incompatible with the format. 可能的值:
  • 0.1
  • 1.0
  • 2.0
  • 2.1
  • 3.0
  • 4.0
  • 5.1
  • 7.1
  • 5.1.2
  • 7.1.2
  • 7.1.4
  • Ambisonics 1st order
  • Ambisonics 2nd order
  • Ambisonics 3rd order
  • Ambisonics 4th order
  • Ambisonics 5th order
sustainTime number Number of seconds of the signal holds at the specified level. Default is 1 second. 范围:[0,*]
sustainLevel number Decibel attenuation for the sustained signal. Default is 0 dB. 范围: [-100,0]
attackTime number Number of seconds for the signal to reach sustain level. Default is 0 second. 范围:[0,*]
releaseTime number Number of seconds for the signal to release from sustain level. Default is 0 second. 范围:[0,*]
waveform string Waveform type. Default is silence. 可能的值:
  • silence
  • sine
  • triangle
  • square
  • whiteNoise
frequency number Waveform frequency. Default is 440. 范围: [1,22000]

(必填 *)

参数架构

示例

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


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅