Skip to content

Commit

Permalink
Prevent stuttering audio when CPU is busy with other tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
dheijl committed May 31, 2020
1 parent 27e8167 commit 0b581eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SWYH/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ private void Application_Startup(object sender, StartupEventArgs e)
notifyIcon.ShowBalloonTip(2000, "Stream What You Hear is running", "Right-click on this icon to show the menu !", System.Windows.Forms.ToolTipIcon.Info);
}
}
using (Process p = Process.GetCurrentProcess())
{
p.PriorityClass = ProcessPriorityClass.AboveNormal;
}
}

private void InitializeUI()
Expand Down

0 comments on commit 0b581eb

Please sign in to comment.