Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
739 stars 185 forks source link

[BUG]: AudioListener not picking up audio when BypassListenerEffects checked #880

Open krisrok opened 1 year ago

krisrok commented 1 year ago

Package version

3.0.0-pre.4

Environment

* OS: Windows 10
* Unity version: 2021.3

Steps To Reproduce

  1. Use the renderstreaming package
  2. Using a setup with an AudioStreamSender, use an AudioListener (presumably on main camera)
  3. Add and configure an AudioSource to play in loop, check BypassListenerEffects
  4. Start stream

Current Behavior

No audio reaches the browser. Even though the AudioListener seems to pick it up: Disabling the AudioListener component mutes the audio.

Expected Behavior

Audio is picked up regardless of this setting.

Anything else?

Stumbled upon this while using the renderstreaming package, see here: https://github.com/Unity-Technologies/UnityRenderStreaming/issues/884

karasusan commented 1 year ago

memo: WRS-419