Ejemplo n.º 1
0
 // not sure about the interface, so make it non-public yet.
 internal void Seek(ISeekProcessor seekProcessor, int ticks)
 {
     seek_processor  = seekProcessor ?? new SimpleSeekProcessor(ticks);
     event_idx       = 0;
     play_delta_time = ticks;
     Mute();
 }
Ejemplo n.º 2
0
        // not sure about the interface, so make it non-public yet.
        internal void Seek(ISeekProcessor seekProcessor, int ticks)
        {
            var state = State;

            seek_processor = seekProcessor ?? new SimpleSeekProcessor(ticks);
            event_idx      = 0;
            PlayDeltaTime  = ticks;
            timer_resumed  = DateTime.Now;
            playtime_delta = TimeSpan.FromMilliseconds(music.GetTimePositionInMillisecondsForTick(ticks));
            Mute();
        }