Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehjohn committed Aug 13, 2024
1 parent 3a0cebe commit c08ec27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Zen.System/Modules/Audio/AudioEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ public AudioEngine()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
BufdioLib.InitializePortAudio(Path.Combine("Libraries", "libportaudio.so"));
BufdioLib.InitializePortAudio(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Libraries", "libportaudio.so"));
}
else
{
BufdioLib.InitializePortAudio(Path.Combine("Libraries", "libportaudio.dylib"));
BufdioLib.InitializePortAudio(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Libraries", "libportaudio.dylib"));
}
}
else
{
BufdioLib.InitializePortAudio(Path.Combine("Libraries", "libportaudio"));
BufdioLib.InitializePortAudio(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Libraries", "libportaudio"));
}

_engine = new PortAudioEngine(new AudioEngineOptions(1, Constants.SampleRate));
Expand Down

0 comments on commit c08ec27

Please sign in to comment.