SetStartTime() public method

public SetStartTime ( System.TimeSpan time ) : void
time System.TimeSpan
return void
Example #1
0
 // If a media file is used as the timing source, it's also being
 // executed as media for the sequence.
 // That means we're either media or media and timing, so only
 // handle media execution entry points.
 override public void LoadMedia(TimeSpan startTime)
 {
     _DisposeAudio();
     if (File.Exists(MediaFilePath))
     {
         _audioSystem = new FmodInstance(MediaFilePath);
         _audioSystem.SetStartTime(startTime);
     }
     else
     {
         throw new FileNotFoundException("Media file doe not exist: " + MediaFilePath);
     }
 }
Example #2
0
File: Audio.cs Project: komby/vixen
 // If a media file is used as the timing source, it's also being
 // executed as media for the sequence.
 // That means we're either media or media and timing, so only
 // handle media execution entry points.
 public override void LoadMedia(TimeSpan startTime)
 {
     if (MediaLoaded)
     {
         _audioSystem.SetStartTime(startTime);
     }
     else
     {
         _DisposeAudio();
         if (File.Exists(MediaFilePath))
         {
             _audioSystem = new FmodInstance(MediaFilePath);
             _audioSystem.FrequencyDetected += _audioSystem_FrequencyDetected;
             _audioSystem.SetStartTime(startTime);
         }
         else
         {
             Logging.Error("Media file does not exist: " + MediaFilePath);
         }
     }
 }
Example #3
0
 // If a media file is used as the timing source, it's also being
 // executed as media for the sequence.
 // That means we're either media or media and timing, so only
 // handle media execution entry points.
 public override void LoadMedia(TimeSpan startTime )
 {
     if (MediaLoaded)
     {
         _audioSystem.SetStartTime(startTime);
     }
     else
     {
         _DisposeAudio();
         if (File.Exists(MediaFilePath))
         {
             _audioSystem = new FmodInstance(MediaFilePath);
             _audioSystem.FrequencyDetected += _audioSystem_FrequencyDetected;
             _audioSystem.SetStartTime(startTime);
         } else
         {
             Logging.Error("Media file does not exist: " + MediaFilePath);
         }
     }
 }
Example #4
0
 // If a media file is used as the timing source, it's also being
 // executed as media for the sequence.
 // That means we're either media or media and timing, so only
 // handle media execution entry points.
 public override void LoadMedia(TimeSpan startTime)
 {
     _DisposeAudio();
     if(File.Exists(MediaFilePath)){
         _audioSystem = new FmodInstance(MediaFilePath);
         _audioSystem.SetStartTime(startTime);
     }else{
         throw new FileNotFoundException("Media file doe not exist: " + MediaFilePath);
     }
 }