Wwise SDK 2024.1.0
|
本节解释 Wwise 如何为每个平台设置音频管线。
备注: 在所有平台中,Wwise 总是输出 PCM 信号。 |
在 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 上的默认设备配置:
|
技巧: 在使用 Wwise 设计工具时,您可以通过使用“Audio”菜单来强制使用特定配置。请参阅用户文档了解更多信息。 |
在 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。 |
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.
On Android, the primary output device will use a default panning rule of AkPanningRule_Headphones
regardless of Spatial audio configuration.
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
来替代此采样率。
On OpenHarmony, the primary output device uses a default panning rule of AkPanningRule_Headphones
.
在默认情况下,Wwise 以 48 kHz 的采样率输出。您可以通过在调用、 AK::SoundEngine::Init()
时设置 AkPlatformInitSettings::uSampleRate
来替代此采样率。
在 Linux 中,Wwise 输出立体声或 5.1 信号。
在默认情况下,Wwise 以 48 kHz 的采样率输出。您可以通过在调用、 AK::SoundEngine::Init()
时设置 AkPlatformInitSettings::uSampleRate
来替代此采样率。