Another audio track# fix

This commit is contained in:
niksedk 2023-01-02 21:18:37 +01:00
parent cb7828258c
commit 96abd74060

View File

@ -21985,6 +21985,7 @@ namespace Nikse.SubtitleEdit.Forms
if (audioTracks.Count <= 1)
{
_videoAudioTrackNumber = -1;
audioTrack = 0;
}
}
catch
@ -21993,8 +21994,8 @@ namespace Nikse.SubtitleEdit.Forms
}
}
var peakWaveFileName = WavePeakGenerator.GetPeakWaveFileName(fileName, VideoAudioTrackNumber);
var spectrogramFolder = WavePeakGenerator.SpectrogramDrawer.GetSpectrogramFolder(fileName, VideoAudioTrackNumber);
var peakWaveFileName = WavePeakGenerator.GetPeakWaveFileName(fileName, audioTrack);
var spectrogramFolder = WavePeakGenerator.SpectrogramDrawer.GetSpectrogramFolder(fileName, audioTrack);
if (File.Exists(peakWaveFileName))
{
audioVisualizer.ZoomFactor = 1.0;