Skip to content

Commit

Permalink
Fixing SoundTouch library loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodivece committed May 22, 2024
1 parent 6c1c805 commit b9336b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unosquare.FFME.Windows/Platform/SoundTouch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ private void DisposeInternal()
/// </summary>
private static class NativeMethods
{
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Ansi)]
public static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPWStr)] string lpFileName);
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern IntPtr LoadLibrary(string lpFileName);

[DllImport(SoundTouchLibrary, CallingConvention = CallingConvention.Cdecl, EntryPoint = "soundtouch_getVersionId")]
public static extern int GetVersionId();
Expand Down

0 comments on commit b9336b6

Please sign in to comment.