Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Aug 15, 2024
1 parent 790c4b0 commit 542050c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Console/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,36 @@ public static class Utils

public static void ConfigurePlatformDependencies()
{
ResourceAccessor accessor = new(Assembly.GetExecutingAssembly());
LibraryManager libManager =
new(
new LibraryItem(
Platform.Linux,
Bitness.x64,
new LibraryFile("libportaudio.so", accessor.Binary("libportaudio.so"))
),
new LibraryItem(
Platform.Linux,
Bitness.x32,
new LibraryFile("libportaudio.so", accessor.Binary("libportaudio.so"))
),
new LibraryItem(
Platform.MacOs,
Bitness.x64,
new LibraryFile("libportaudio.dylib", accessor.Binary("libportaudio.dylib"))
),
new LibraryItem(
Platform.Windows,
Bitness.x64,
new LibraryFile("portaudio.dll", accessor.Binary("portaudio.dll"))
),
new LibraryItem(
Platform.Windows,
Bitness.x32,
new LibraryFile("portaudio.dll", accessor.Binary("portaudio.dll"))
)
);
libManager.LoadNativeLibrary();
PortAudio.Initialize();
}

Expand Down

0 comments on commit 542050c

Please sign in to comment.