Skip to content

Commit

Permalink
Small GUI change
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGonauta committed Jun 1, 2017
1 parent 5960028 commit ea43c36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ASIORecAndPlay/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private void OnButtonBeginClick(object sender, RoutedEventArgs e)
{
channels = 2;
}
comboChannelConfig.IsEnabled = false;

NAudio.Wave.WaveFormat format = new NAudio.Wave.WaveFormat(48000, 32, channels);
buffer = new NAudio.Wave.BufferedWaveProvider(format);
Expand All @@ -125,7 +126,7 @@ private void OnButtonBeginClick(object sender, RoutedEventArgs e)
asioRec.Play();
asioPlay.Play();

buttonBegin.Content = "Stop";
buttonBegin.Content = "Stop";
}
else
{
Expand Down Expand Up @@ -158,6 +159,7 @@ private void Stop()

running = false;
buttonBegin.Content = "Begin";
comboChannelConfig.IsEnabled = true;
}
}

Expand Down

0 comments on commit ea43c36

Please sign in to comment.