Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Aug 13, 2024
1 parent 384309f commit 51c3062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Console/Audio/AudioSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public void ClearBuffer()

public unsafe void StartSending(CancellationToken token = default)
{
PortAudio.Initialize();

// Define a callback delegate for audio processing
StreamCallbackResult callback(
IntPtr input,
Expand Down
6 changes: 4 additions & 2 deletions Console/Utils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using PortAudioSharp;
using CliFx.Infrastructure;
using PortAudioSharp;
using Terminal.Gui;

namespace Console;
Expand All @@ -7,9 +8,10 @@ public static class Utils
{
private static bool _isShowing = false;

public static void ConfigurePlatformDependencies()
public static void ConfigurePlatformDependencies(IConsole console)
{
PortAudio.LoadNativeLibrary();
PortAudio.Initialize();
}

public static string? ShowInputDialog(string title, string prompt, ColorScheme colorScheme)
Expand Down

0 comments on commit 51c3062

Please sign in to comment.