Skip to content

BetterPlayerAudio

Guribo edited this page Jul 16, 2021 · 1 revision

BetterPlayerAudio

Assets/Guribo/UdonBetterAudio/Runtime/BetterPlayerAudio.cs

The brain of Better Player Audio.

Overview

The UdonSharpbehaviour BetterPlayerAudio is the component which

  • updates the voice and avatar audio settings using the VRCPlayerApi of each player in the current world
    • with the exception of ignored players
  • updates players in a time-sliced manner, at least one player during each rendered frame
  • reduces voice and avatar audio ranges based on player or environment occlusion
  • reduces voice and avatar audio ranges based on local player head rotation to emitting other player head position
  • reduces voice and avatar audio ranges based on emitting other player head rotation to local player head position
  • applies voice and avatar override settings
  • mutes players in private channels
    • except those that are in the same channel as the local player
  • mutes players that are not in a private channel if muteOutsiders is enabled on the corresponding override which affects the local player
  • can optionally synchronize the global default settings with the instance master
  • supports adjusting the global default settings via UI in the world (example UI menu and UI controller script available)