Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Don't reencode MP3 when pitch is 1 (#23)
Browse files Browse the repository at this point in the history
* Don't reencode MP3 when pitch is 1

* Use range to check pitch
  • Loading branch information
osyu authored Mar 17, 2022
1 parent 21deb72 commit a676af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AcapellaDownloader/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private void btnDownload_Click(object sender, EventArgs e)
var s = dialog.ShowDialog();
if (s == DialogResult.OK)
{
if (!Program.bOldWindows)
if (!Program.bOldWindows && !(radio_mp3.Checked && Math.Abs(Pitch - 1f) <= 0.01f))
{
using (var mf = new MediaFoundationReader(soundLink))
{
Expand Down

0 comments on commit a676af0

Please sign in to comment.