Example #1
0
 protected AudioTrackSizeTab AddAudio()
 {
     AudioTrackSizeTab a = new AudioTrackSizeTab();
     a.SomethingChanged += audio_SelectedIndexChanged;
     a.PlayLength = (int)totalSeconds.Value;
     audioExtraFlow.Controls.Add(a);
     UpdateContainers();
     Calculate();
     return a;
 }
Example #2
0
 protected void SetAudioLength()
 {
     foreach (Control c in audioExtraFlow.Controls)
     {
         if (c is AudioTrackSizeTab)
         {
             AudioTrackSizeTab a = (AudioTrackSizeTab)c;
             a.PlayLength = (int)totalSeconds.Value;
         }
     }
 }
Example #3
0
 /// <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;
         }
     }
 }