public AudioJob(string input, string output, string cutfile, AudioCodecSettings settings, int delay) : base(input, output) { CutFile = cutfile; Settings = settings; Delay = delay; }
/// <summary> /// handles the queue button in the audio tab /// generates a new audio job, adds the job to the queue and listView, and if "and encode" is checked, we'll start encoding /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void queueAudioButton_Click(object sender, System.EventArgs e) { this.updateAudioStreams(); string settingsError = verifyAudioSettings(); if (settingsError != null) { MessageBox.Show(settingsError, "Unsupported configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } AudioCodecSettings aSettings = this.CurrentAudioStream.settings; if (this.CurrentAudioStream.Delay != 0) { aSettings.DelayEnabled = true; aSettings.Delay = this.CurrentAudioStream.Delay; } bool start = mainForm.Settings.AutoStartQueue; start &= mainForm.JobUtil.AddAudioJob(this.AudioInput, this.AudioOutput, aSettings); if (start) { mainForm.Jobs.startNextJobInQueue(); } }
public AudioJob(string input, string output, string cutfile, AudioCodecSettings settings, int delay, string strLanguage, string strName) : base(input, output) { CutFile = cutfile; Settings = settings; Delay = delay; Language = strLanguage; Name = strName; }
public void openAudioFile(string fileName) { this.AudioInput = fileName; int del = getDelay(fileName); AudioCodecSettings settings = (AudioCodec.SelectedItem as ISettingsProvider <AudioCodecSettings, string[], AudioCodec, AudioEncoderType>).GetCurrentSettings(); /*if (del != 0) // we have a delay we are interested in * { * settings.DelayEnabled = true; * settings.Delay = del; * } * else * { * settings.DelayEnabled = false; * }*/ this.AudioOutput = Path.ChangeExtension(fileName, this.CurrentAudioOutputType.Extension); this.updateAudioStreams(); }
public OneClickStream(string path, TrackType trackType, string codec, string container, int ID, string language, string name, int delay, bool bDefaultTrack, bool bForceTrack, AudioCodecSettings oSettings, AudioEncodingMode oEncodingMode) { _trackInfo = new TrackInfo(language, name); _trackInfo.TrackType = trackType; _trackInfo.Delay = delay; _trackInfo.DefaultTrack = bDefaultTrack; _trackInfo.ForcedTrack = bForceTrack; _trackInfo.ContainerType = container; _trackInfo.Codec = codec; _trackInfo.TrackID = ID; this._inputFilePath = path; this._encoderSettings = oSettings; if ((int)oEncodingMode == -1) { this._encodingMode = AudioEncodingMode.IfCodecDoesNotMatch; } else { this._encodingMode = oEncodingMode; } }
public AudioJob() : base() { settings = null; }