public SetStartTime ( System.TimeSpan time ) : void | ||
time | System.TimeSpan | |
리턴 | void |
// 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); } }
// 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); } } }
// 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); } } }
// 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); } }