AudioIn Library could not be loaded

Hello Photon team

We recently started using Photon Voice alongside PUN in our multiplayer game. For many of our players, this seems to work great but some of our users are experiencing issues where it fails upon loading the AudioIn library file, which has the effect of making the game hang.

The users experiencing this issue have the following lines in their log files as shown below. Is this something you guys have been confronted with before, and if so, have a solution at hand?

Thanks in advance.

Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/AudioIn Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/.\AudioIn Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/AudioIn Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/libAudioIn Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/.\libAudioIn Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/libAudioIn DllNotFoundException: AudioIn at (wrapper managed-to-native) ExitGames.Client.Photon.Voice.AudioInEnumerator:Photon_Audio_In_CreateMicEnumerator () at ExitGames.Client.Photon.Voice.AudioInEnumerator.Refresh () [0x00000] in <filename unknown>:0 at ExitGames.Client.Photon.Voice.AudioInEnumerator..ctor () [0x00000] in <filename unknown>:0 at PhotonVoiceNetwork..ctor () [0x00000] in <filename unknown>:0 UnityEngine.GameObject:Internal_AddComponentWithType(Type) UnityEngine.GameObject:AddComponent(Type) UnityEngine.GameObject:AddComponent() PhotonVoiceNetwork:✕✗✑✛✔✛✓✓✑✐✖() PhotonVoiceNetwork:✑✔✘✛✙✓✐✕✔✗✚() PhotonVoiceHandler:Awake() UnityEngine.GameObject:Internal_AddComponentWithType(Type) UnityEngine.GameObject:AddComponent(Type) UnityEngine.GameObject:AddComponent() PhotonVoiceHandler:RuntimeInitializeOnLoad()

Comments

  • As some additional notes to the above lines, we can replicate the issue with not loading the DLL if the file permissions are not set correctly, i.e. if you take away read, write and execution rights to the AudioIn DLL. But we're not entirely sure whether this is the root cause of the issue. Perhaps the AudioIn library has some additional dependencies that are not on the user's system and fails to load in that regard?
  • Hi @juniordiscart,

    Thank you for reporting this.
    This is new to us, we are looking into it.
  • Hi,

    What does user actually run? 64-bit executable exported from Unity? Where the executable and dlls are located? Is proper path to dll listed in log? Can you share full application logs?
    Can you run modified application version on target system to make sure that other dlls work? You need to set microphone type to Unity in PhotnoVoiceRecorder and edit first line of Assets\Plugins\PhotonVoiceApi\Platforms\Unity\AudioInEnumerator.cs so that #if expression evaluates to false (AudioInEnumerator stub class compiled in this case)
Sign In or Register to comment.