-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug WasapiLoopbackCapture #1176
Comments
NAudio.Core 2.2.1 |
I have been trying for a long time and have been researching NAudio for 3 days now, but I feel disappointed |
By the way, it is necessary to use a framework, even if Unity officially abandons this technology, and it must be used in lower versions of Unity 2022. If NAudio gives up, it means giving up Unity creativity |
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
COMException |
Bug1:
System.TypeLoadException: Could not resolve type with token 0100001e from typeref (expected class 'System.OperatingSystem' in assembly 'System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
at NAudio.Wave.WasapiLoopbackCapture.GetDefaultLoopbackCaptureDevice () [0x00000] in <1b3f595e963c4b8ab8ee799323fffe28>:0
at NAudio.Wave.WasapiLoopbackCapture..ctor () [0x00000] in <1b3f595e963c4b8ab8ee799323fffe28>:0
at AudioCapture.Start () [0x00002] in D:\Live2D Editor\Assets\Script\AudioCapture.cs:32
UnityEngine.Debug:Log (object)
AudioCapture:Start () (at Assets/Script/AudioCapture.cs:48)
c# Script
//NAudio.dll Save => Plugins
using NAudio.Wave;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
public class AudioCapture : MonoBehaviour
{
public int bytesLength;
public byte[] bytes;
}
Bug2:WasapiLoopbackCapture cap = new WasapiLoopbackCapture();//Unity Debug Show dll in code is null error
1.An error occurred while installing NAudio on Nuget in Visual Studio, and the reference name could not be found. After exploring for a long time, the current solution is to copy the DLL file to the plugins special folder of the Unity project.
2.try-catch, code no run, But unity debug show Null error. DLL internal error, unable to catch exception
3.Permission issue, causing Unity to be unable to use NAudio and unable to use it. The Unity Hub and Unity Engine have been set to administrator privileges, but they are invalid
The text was updated successfully, but these errors were encountered: