Ejemplo n.º 1
0
        public void Eject()
        {
            Stop();

            Tape        = null;
            PlayingTime = 0;
            nextStateChangeCountdown  = 0;
            currentSectionIndex       = 0;
            currentSection            = null;
            currentSoundSequenceIndex = 0;
            currentSoundSequence      = null;
        }
Ejemplo n.º 2
0
        private void SetCurrentSection(int targetSectionIndex, bool adjustPlayingTime)
        {
            currentSectionIndex = targetSectionIndex;
            currentSection      = Tape.Sections[currentSectionIndex];

            if (adjustPlayingTime)
            {
                int duration = 0;
                for (int i = 0; i < currentSectionIndex; i++)
                {
                    duration += Tape.Sections[i].Duration;
                }
                PlayingTime = duration * 3500;
            }

            SetCurrentSoundSequence(0);
        }