版本
menu_open
警告:此页面上某些受保护的信息未予显示。
若为特定平台的授权用户,请确保已登录相应的帐户。
Wwise SDK 2023.1.3
平台上的音频输出

本节解释 Wwise 如何为每个平台设置音频管线。

备注: 在所有平台中,Wwise 总是输出 PCM 信号。

Windows

在 Windows 中,默认情况下 Wwise 采用系统默认设备的配置。You can override the default configuration by changing AkInitSettings::settingsMainOutput before calling AK::SoundEngine::Init().

在默认情况下,Wwise 以 48 kHz 的采样率输出。您可以通过在调用、 AK::SoundEngine::Init() 时设置 AkPlatformInitSettings::uSampleRate 来替代此采样率。

在 System Audio Device 上启用 Allow 3D Audio 时,Wwise 还可输出 7.1.4 Main Mix、可选立体声 Passthrough Mix 及 Discrete Object。有关如何在 Windows 上启用 3D Audio 的详细信息,请参阅 启用 3D Audio 章节。

技巧: 更改 Windows 上的默认设备配置:
  • 右键单击系统托盘中的扬声器图标
  • 选择“Playback Devices”
  • 在“Sound”面板中,选择您要使用的设备(使用“Set Default”更改默认值)。
  • 单击“Configure”更改所选设备的配置
技巧: 在使用 Wwise 设计工具时,您可以通过使用“Audio”菜单来强制使用特定配置。请参阅用户文档了解更多信息。

Mac

在 Mac 中,默认情况下 Wwise 采用系统默认设备的配置。You can override the default configuration by changing AkInitSettings::settingsMainOutput before calling AK::SoundEngine::Init(). Only Mono, Stereo, 5.1, and 7.1 are supported. If the audio device is incapable of outputting the requested configuration, Wwise will ignore the request and use the device's default configuration.

在默认情况下,Wwise 以 48 kHz 的采样率输出。You can override this sample rate by setting AkPlatformInitSettings::uSampleRate before calling AK::SoundEngine::Init().

When Allow 3D Audio is enabled on the System Audio Device, Wwise will use Apple Spatial Audio to output a multichannel mix regardless of the audio device configuration. For more information on 3D Audio on macOS, see 3D audio support using Apple Spatial Audio.

技巧: 要更改 MacOS 中的默认设备配置,请访问 Applications/Utilities/Audio MIDI Setup

iOS/tvOS/visionOS

By default on iOS and visionOS, Wwise outputs a stereo signal, and the primary output device will also use a default panning rule of AkPanningRule_Headphones. On tvOS, Wwise takes the system's default configuration and will use a default panning rule of AkPanningRule_Speakers.

On iOS/tvOS/visionOS, you can override the default configuration by changing AkInitSettings::settingsMainOutput before calling AK::SoundEngine::Init(). Only Mono, Stereo, 5.1, and 7.1 are supported. If the audio device is incapable of outputting the requested configuration, Wwise will ignore the request and use the device's default configuration.

Wwise will detect the default sample rate of the Audio Session when AK::SoundEngine::GetDefaultPlatformInitSettings is called. 您可以通过在调用、 AK::SoundEngine::Init() 时设置 AkPlatformInitSettings::uSampleRate 来替代此采样率。

When Allow 3D Audio is enabled on the System Audio Device, Wwise will use Apple Spatial Audio to output a multichannel mix regardless of the audio device configuration. For more information on 3D Audio on iOS/tvOS/visionOS, see 3D audio support using Apple Spatial Audio.

Android

On Android, the primary output device will use a default panning rule of AkPanningRule_Headphones regardless of Spatial audio configuration.

  • When Android Spatial audio is disabled, Wwise always outputs a stereo signal.
  • When Android Spatial audio is enabled, Wwise outputs a multichannel 7.1.4 signal unless a mono or stereo configuration is specified in AkOutputSettings.

Android Spatial audio can only be enabled when Allow 3D Audio is enabled on the System Audio Device and Android Spatial audio is enabled on the device (Android OS 13 and up).

在默认情况下,Wwise 以 48 kHz 的采样率输出。您可以通过在调用、 AK::SoundEngine::Init() 时设置 AkPlatformInitSettings::uSampleRate 来替代此采样率。

Linux

在 Linux 中,Wwise 输出立体声或 5.1 信号。

在默认情况下,Wwise 以 48 kHz 的采样率输出。您可以通过在调用、 AK::SoundEngine::Init() 时设置 AkPlatformInitSettings::uSampleRate 来替代此采样率。


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅