Voice loop for every client

Hello,

After joining a PUN room and loading a scene, both the clients that connect to the room hear about 1 second of sound that loops continuously. Does anyone have any idea what might cause this?

Comments

  • Hi @tavilad,

    Thank you for choosing Photon!

    What is the Photon Voice you are using? latest 1.15?
    Did you try the demos?

    Can you repeat reproduction steps with more details or try to better describe what you are reporting?
    Maybe a short video?
  • Hello,

    I am creating a PUN room, after that i am loading a scene on each client. I spawn a character for each client, with a script containing references to Photon Voice Recorder. I only enable the Voice recorder if the Photon View attached to the character is mine. I am also using Factory Audio Source for the voice recorder.

    https://pastebin.com/xBJkRBme this is the implementation of the Factory

    https://pastebin.com/763iE130 this is the script in which i enable the voice recorder

    As i said before, once connected, both clients only head about 1 second of audio that loops.

    Hope this explanation helps

  • vadimvadim ✭✭✭
    Hi,
    In case all works ok when fed with mic audio directly, w/o custom audio source then your AudioRecorder most likely causes this looping. Try to debug or trace it.
    The only suspicious thing which caught my eye is Factory assignment. You do it multiple times In Awake of every instance and bind concrete AudioRecorder instance to it. Instead, Factory should be assigned once (e,g, when connecting) and it should return new instance of AudioSource on each call.
Sign In or Register to comment.