Errors with IL2CPP Builds:

[PrimaryVoiceRecorder.Recorder] [PV] WindowsAudioInPusher: System.NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: Photon.Voice.Windows.WindowsAudioInPusher::push
at Photon.Voice.Windows.WindowsAudioInPusher..ctor (System.Int32 deviceID, Photon.Voice.ILogger logger) [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.CreateLocalVoiceAudioAndSource () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.Setup () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.StartRecording () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.Init (Photon.Voice.Unity.VoiceConnection voiceConnection) [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.VoiceConnection.TryInitializePrimaryRecorder () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.VoiceConnection.Awake () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.PUN.PhotonVoiceNetwork.Awake () [0x00000] in <00000000000000000000000000000000>:0
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, Object, String, Object[])
UnityEngine.Debug:LogErrorFormat(Object, String, Object[])
Photon.Voice.Unity.VoiceLogger:LogError(String, Object[])
Photon.Voice.Windows.WindowsAudioInPusher:.ctor(Int32, ILogger)
Photon.Voice.Unity.Recorder:CreateLocalVoiceAudioAndSource()
Photon.Voice.Unity.Recorder:Setup()
Photon.Voice.Unity.Recorder:StartRecording()
Photon.Voice.Unity.Recorder:Init(VoiceConnection)
Photon.Voice.Unity.VoiceConnection:TryInitializePrimaryRecorder()
Photon.Voice.Unity.VoiceConnection:Awake()
Photon.Voice.PUN.PhotonVoiceNetwork:Awake()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[PrimaryVoiceRecorder.Recorder] Photon microphone input source creation failure: System.NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: Photon.Voice.Windows.WindowsAudioInPusher::push
at Photon.Voice.Windows.WindowsAudioInPusher..ctor (System.Int32 deviceID, Photon.Voice.ILogger logger) [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.CreateLocalVoiceAudioAndSource () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.Setup () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.StartRecording () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.Recorder.Init (Photon.Voice.Unity.VoiceConnection voiceConnection) [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.VoiceConnection.TryInitializePrimaryRecorder () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.Unity.VoiceConnection.Awake () [0x00000] in <00000000000000000000000000000000>:0
at Photon.Voice.PUN.PhotonVoiceNetwork.Awake () [0x00000] in <00000000000000000000000000000000>:0 . Falling back to Unity microphone
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, Object, String, Object[])
UnityEngine.Debug:LogErrorFormat(Object, String, Object[])
Photon.Voice.Unity.VoiceLogger:LogError(String, Object[])
Photon.Voice.Unity.Recorder:CreateLocalVoiceAudioAndSource()
Photon.Voice.Unity.Recorder:Setup()
Photon.Voice.Unity.Recorder:StartRecording()
Photon.Voice.Unity.Recorder:Init(VoiceConnection)
Photon.Voice.Unity.VoiceConnection:TryInitializePrimaryRecorder()
Photon.Voice.Unity.VoiceConnection:Awake()
Photon.Voice.PUN.PhotonVoiceNetwork:Awake()

Comments