SetStartTime() public method

public SetStartTime ( System.TimeSpan time ) : void
time System.TimeSpan
return void
示例#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);
     }
 }
示例#2
0
文件: Audio.cs 项目: 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);
         }
     }
 }
示例#3
0
文件: Audio.cs 项目: Jchuchla/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);
         }
     }
 }
示例#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);
     }
 }