Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SoftwareModem/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ private WasapiCapture GetCaptureDevice()
var device = lineInBox.SelectedItem as MMDevice;
var capture = new NAudio.CoreAudioApi.WasapiCapture(device);
capture.ShareMode = AudioClientShareMode.Shared;
capture.WaveFormat = new WaveFormat();
return capture;
}

private void SendButton_Click(object sender, RoutedEventArgs e)
{
if (modem==null) {
MessageBox.Show("Connection is not set up", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
var bytes = new byte[InputBox.Text.Length];
for (int i = 0; i < InputBox.Text.Length; ++i)
{
Expand Down