Dissonance icon indicating copy to clipboard operation
Dissonance copied to clipboard

[bug] iOS devices don't receive audio from other clients

Open Ago251 opened this issue 1 year ago • 5 comments

Context

I upgraded the Dissonance version from 8.3.1 to 9.0.3 for fix this bug for iOS. The problem has been resolved, but ios devices don't receive sound from other clients. I can detect that a client is speaking, but the amplitude is consistently zero. I also tried a previous build that was loaded on TestFlight with version 8.3.1, and it worked as expected."

Expected behaviour

I expect to receive sound from other clients.

Actual behaviour

With iOS device can send my voice but can't receive voice of others.

Steps to Reproduce

  1. Enter to a chat voice with iOS device

Your Environment

Include as many relevant details about the environment you experienced the bug in

  • Dissonance version used: 9.0.3

  • Unity version: 2021.3.1f1

  • Editor Operating System and version: macOS Ventura (13.6)

  • Build Settings: iOS development and development build

Ago251 avatar Oct 26 '23 13:10 Ago251

There's a known issue in 9.0.3 (which I already have a prototype fix for) which sounds similar to this.

Could you try this to see if you are affected by the issue:

  1. In Assets/Plugins/Dissonance/Core/DissonanceCommsImpl.cs find private bool MuteAllRemoteVoices
  2. Change it to public bool MuteAllRemoteVoices
  3. In a separate script, log out FindObjectOfType<DissonanceComms>().MuteAllRemoteVoices every frame

If that is logging out true you're probably affected by that issue. I can send you the prototype fix to test out in that case.

martindevans avatar Oct 26 '23 13:10 martindevans

MuteAllRemoteVoices is true. If you can send me the prototype so I can try it

Ago251 avatar Oct 26 '23 14:10 Ago251

Thanks for checking that. In the same file as before find CoResumePlayback and replace the entire method with this: https://gist.github.com/martindevans/6fbeb64df5d4e52d04af13a99fb3237e

martindevans avatar Oct 26 '23 14:10 martindevans

It is works, thank you!

Ago251 avatar Oct 26 '23 15:10 Ago251

Excellent! Thanks for confirming that. This fix will be included in the next Dissonance update.

martindevans avatar Oct 26 '23 15:10 martindevans