SetStartTime() public method

public SetStartTime ( System.TimeSpan time ) : void
time System.TimeSpan
return void
Beispiel #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);
     }
 }
Beispiel #2
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);
         }
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #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);
     }
 }