Unity Editor Freeze with Photon Mic Type

GrimShady_
edited May 2020 in Photon Voice
Unity 2018.3.5 OSX Editor freezes on clicking play, the second time when the selected microphone type is photon. This issue is observed in the Photon Demo Voice UI project as well. No issues are observed when switching to Unity Microphone type.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @GrimShady_,

    Thank you for choosing Photon!

    Do you have Recorder.ReactOnSystemChanged enabled (true)?
    What about Recorder.SkipDeviceChangeChecks?
  • GrimShady_
    edited May 2020
    Hi, Thanks for replying

    Recorder.ReactOnSystemChanged is unchecked
    As for Recorder.SkipDeviceChangeChecks, I can't seem to find that field

    My PhotonServerSetting Version is Pun 2.15
    In the Photon Voice 2 Change Log The latest entry is of, v2.13 (February 03rd, 2020)
  • @JohnTube I updated to the latest version. But I was getting a compile time error saying ISyncAudioOut could not be found. I copy-pasted the interface in AudioStreamPlayer.cs from the pre-updated plugin. So far no freeze observed.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @GrimShady_,

    Thanks for the heads up.
    However, there should be no compile errors when importing or updating Voice.
    Could you try importing Voice latest in a new fresh clean empty project?
  • @JohnTube same issue. Is this interface missing from AudioUtil.cs? This is what it used to look like:

    public interface ISyncAudioOut<T> : IAudioOut<T>
    {
    int PlaySamplePos { get; set; }
    void Pause();
    void UnPause();
    }
  • I see that AudioStreamPlayer.cs is no longer used. My asset store update failed to remove it. Fixed now.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Yes, AudioStreamPlayer.cs was removed in 2.16:
    CHANGED: Speaker playback is optimized (AudioStreamPlayer no longer used) and runs on a separate coroutine.