problem with mac OSX

Comments
-
Hi @wromRed,
What Unity version is this?
What Photon Voice version is this?
Do you use Photon microphone type or Unity microphone type?
Did you enable Recorder.SkipDeviceChangeChecks?
This could be due to a known issue yes.
Somehow Unity's OnAudioConfigChange callback that we rely on is triggered multiple times on macOS.0 -
hi @JohnTube yes , i have edit function OnAudioConfigChange callback like this theard : https://forum.photonengine.com/discussion/comment/50897#Comment_50897
it's remove lagging but now no audio send from mac , i set microphone type to photon0 -
any news , i really need help for this case please0
-
Hi @wromRed,
Please download and import this version to see if it fixes the lagging in macOS when microphone changes. (preferably clean install, backup first or always use VCS properly)
Keep Recorder.ReactToSystemChanges = true.
Do not make any other modifications.1 -
Has this been fixed? We are observing this in Unity 2020.3.39 in macOS
0 -
What version of Voice? The current is 2.50.
0 -
We are using v2.22.22 still as we never had issues until now. Is this fixed in newer versions? I will update if its fixed but its not easy for us to just update to test as we have many versions for different platforms
0 -
We had server-side issues recently. If you did not update your client, your problems could be caused by these issues.
0 -
Hi guys and @vadim! I have almost the same issue with OSX. The AudioChangeHandle detects audio device change after each "Speaker" creation in runtime, even if I do not have any extra microphones attached to my mac machine. And that causes a Restart for the Recorder and recreation of the speaker object, also during each creation of the Speaker it makes a huge lag and freezes the game for 1-2 seconds. So it becomes as an endless loop of -> Recorder Restart -> Lag -> Speaker Creation -> and so on.
I have checked both echo mode, multiplayer, and editor and build. Same issue...
Also, I have checked the assigned AudioChangeHandle from the inspector and at runtime before starting the recorder.
It works just well for Windows 11.
My OS version is macOS Monterey, version 12.6
Voice chat version: v2.50 (October 2022)
Unity 2021.3.9f1
Photon Fusion : 1.1.4, F, Build 609 (Nov 01, 2022)
Let me know if you need any additional information! I spent about a week to get my own solution to fix that issue but it seems like the issue comes from Photon(Microphone) native plugin. The chosen Microphone type is Photon(but it doesn't work with Unity as well).
0 -
Hi,
Device change detection component for MacOS is broken.
The workaround is to get the list of devices with device enumerator instance (Platform.CreateAudioInEnumerator) and compare it with the previously saved list before calling this.recorder.MicrophoneDeviceChangeDetected() in AudioChangesHandler.OnDeviceChange()
0 -
I tried to fix the native plugin but did not succeed. So maybe the fix will be the same as the workaround. It's simple, does not require many resources and does not depend on obscure and poorly documented api details.
0