mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Minor clean
This commit is contained in:
parent
6a798311ff
commit
06cd28ebf2
@ -21,7 +21,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private string _spectrogramDirectory;
|
||||
public WavePeakData Peaks { get; private set; }
|
||||
public SpectrogramData Spectrogram { get; private set; }
|
||||
private string _encodeParamters;
|
||||
private string _encodeParameters;
|
||||
private const string RetryEncodeParameters = "acodec=s16l";
|
||||
private int _audioTrackNumber = -1;
|
||||
private int _delayInMilliseconds;
|
||||
@ -53,7 +53,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
|
||||
labelSourcevideoFile.Text = Configuration.Settings.Language.AddWaveform.SourceVideoFile;
|
||||
_spectrogramDirectory = spectrogramDirectory;
|
||||
_encodeParamters = Configuration.Settings.General.VlcWaveTranscodeSettings;
|
||||
_encodeParameters = Configuration.Settings.General.VlcWaveTranscodeSettings;
|
||||
}
|
||||
|
||||
public static Process GetCommandLineProcess(string inputVideoFile, int audioTrackNumber, string outWaveFile, string encodeParamters, out string encoderName)
|
||||
@ -132,7 +132,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
Process process;
|
||||
try
|
||||
{
|
||||
process = GetCommandLineProcess(SourceVideoFileName, _audioTrackNumber, targetFile, _encodeParamters, out encoderName);
|
||||
process = GetCommandLineProcess(SourceVideoFileName, _audioTrackNumber, targetFile, _encodeParameters, out encoderName);
|
||||
labelInfo.Text = encoderName;
|
||||
}
|
||||
catch (DllNotFoundException)
|
||||
@ -220,9 +220,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
var targetFileInfo = new FileInfo(targetFile);
|
||||
if (!targetFileInfo.Exists)
|
||||
{
|
||||
if (_encodeParamters != RetryEncodeParameters)
|
||||
if (_encodeParameters != RetryEncodeParameters)
|
||||
{
|
||||
_encodeParamters = RetryEncodeParameters;
|
||||
_encodeParameters = RetryEncodeParameters;
|
||||
buttonRipWave_Click(null, null);
|
||||
return;
|
||||
}
|
||||
|
2
src/Forms/ChooseAudioTrack.Designer.cs
generated
2
src/Forms/ChooseAudioTrack.Designer.cs
generated
@ -1,6 +1,6 @@
|
||||
namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
partial class ChooseAudioTrack
|
||||
sealed partial class ChooseAudioTrack
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -6,7 +6,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
public partial class ChooseAudioTrack : Form
|
||||
public sealed partial class ChooseAudioTrack : Form
|
||||
{
|
||||
public ChooseAudioTrack(List<string> tracks, int defaultTrack)
|
||||
{
|
||||
|
@ -19674,7 +19674,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
using (var addWaveform = new AddWaveform())
|
||||
{
|
||||
var peakWaveFileName = WavePeakGenerator.GetPeakWaveFileName(_videoFileName);
|
||||
var spectrogramFolder = Nikse.SubtitleEdit.Core.WavePeakGenerator.SpectrogramDrawer.GetSpectrogramFolder(_videoFileName);
|
||||
var spectrogramFolder = WavePeakGenerator.SpectrogramDrawer.GetSpectrogramFolder(_videoFileName);
|
||||
|
||||
if (WavePeakGenerator.IsFileValidForVisualizer(_videoFileName))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user