protected AudioTrackSizeTab AddAudio() { AudioTrackSizeTab a = new AudioTrackSizeTab(); a.SomethingChanged += audio_SelectedIndexChanged; a.PlayLength = (int)totalSeconds.Value; audioExtraFlow.Controls.Add(a); UpdateContainers(); Calculate(); return a; }
protected void SetAudioLength() { foreach (Control c in audioExtraFlow.Controls) { if (c is AudioTrackSizeTab) { AudioTrackSizeTab a = (AudioTrackSizeTab)c; a.PlayLength = (int)totalSeconds.Value; } } }
/// <summary> /// Gets the audio streams by finding them in the form /// </summary> /// <returns></returns> protected IEnumerable<AudioBitrateCalculationStream> GetAudioStreams() { foreach (Control c in audioExtraFlow.Controls) { if (c is AudioTrackSizeTab) { AudioTrackSizeTab a = (AudioTrackSizeTab)c; if (a.Stream != null) yield return a.Stream; } } }