Good morning.
Let me start by explaining our situation. Two players join a lobby from the unity editor. Player 1 creates a room and this loads a scene. Player 2 selects that room from a list and hits join. Player 2 joins Player 1 in the scene and they can both speak and hear each other.
Player 2 then leaves the room and returns to the lobby. He once again selects the room from the list and hits join. Player 1 and Player 2 are both again in the same scene. Player 1 can hear Player 2. Player 2 cannot hear Player 1. This happens in the reverse as well, if Player 1 left the room and comes back.
However, if Player 1 and Player 2 join a room and then change the scene together, not going back to the lobby, audio continues to work correctly. It seems our issue seems to be returning to the lobby. We have an object in DoNotDestryOnLoad called VoicePre, that contains the scripts, "Recorder" and "Photon Voice Network." On Photon Voice Network, we have Auto Connect and Join TRUE and Auto Leave and Disconnect TRUE.
We are not sure if we are using Voice 2 in a way it was not intended or if we have an issue reconnecting the ability to hear the other person when we re-connect. We do not see any errors in the log and we have attempted to debug, but we cannot seem to locate where this is happening.
We are currently using Unity 2017.4.2f2 and Pun 2 v2.6 and installed Voice 2 v2.2. Any help here would be greatly appreciated.
-Ted Hartle
↧