Use PortAudio-Sharp bindings for easier updates

Use COSFunctions for OS-specific stuff
Add dll directories on startup (could be done in the modules itself, but this way it avoids all trouble)
This commit is contained in:
Flamefire committed 2014-03-15 17:15:13 +01:00
1 parent f0fca0baf7
commit 5316d30a7d
12 files changed
+196 -650

No files matched your search

+15
View File
@@ -17,6 +17,8 @@
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
using Microsoft.Win32;
using Vocaluxe.Base;
@@ -108,5 +110,18 @@ namespace Vocaluxe
}
return true;
}
public static void Init()
{
#if ARCH_X86
string path = "x86";
#endif
#if ARCH_X64
string path = "x64";
#endif
path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + Path.DirectorySeparatorChar + path;
COSFunctions.AddLibrarySearchpath(path);
COSFunctions.AddLibrarySearchpath(path + Path.DirectorySeparatorChar + "gstreamer");
}
}
}