diff --git a/LoopingAudioConverter/Exporters/MP3Exporter.cs b/LoopingAudioConverter/Exporters/MP3Exporter.cs index 6af550e..19b0114 100644 --- a/LoopingAudioConverter/Exporters/MP3Exporter.cs +++ b/LoopingAudioConverter/Exporters/MP3Exporter.cs @@ -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());