Skip to content

Commit

Permalink
Lossless MP3 MSF -> MP3 conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
libertyernie committed Apr 27, 2019
1 parent 6fdf571 commit 69e1a42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LoopingAudioConverter/Exporters/MP3Exporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public async Task WriteFileAsync(PCM16Audio lwav, string output_dir, string orig
throw new AudioExporterException("Invalid character (\") found in output filename");
}

if (lwav.OriginalMP3 != null) {
File.WriteAllBytes(outPath, lwav.OriginalMP3);
return;
}

string infile = TempFiles.Create("wav");
File.WriteAllBytes(infile, lwav.Export());

Expand Down

0 comments on commit 69e1a42

Please sign in to comment.