文档

支持

Vivox Unreal SDK

Vivox Unreal SDK

Cannot set iOS device volume to 0 when Voice-Processing I/O unit is active

Understand iOS volume constraints when the Voice-Processing input/output unit is active.
阅读时间1 分钟最后更新于 18 小时前

When using an iOS device and the Voice-Processing I/O unit is active, you cannot set the volume of the iOS device to 0. For more information, see the Apple developer documentation on
AVAudioSessionCategoryPlayAndRecord
.
A possible workaround for this functionality when you are using Vivox on iOS is to observe changes in
AVAudioSession.outputVolume
that are being set by the user and then mute your game audio output based on the observed value. For example implementations of this workaround, see How to: Observe the iOS volume level to programmatically mute game audio in the Unity Support Knowledge Base.