NScumm.Sky.Music.MusicBase.LoadSection C# (CSharp) Method

LoadSection() public method

public LoadSection ( byte pSection ) : void
pSection byte
return void
        public void LoadSection(byte pSection)
        {
            if (_currentMusic != 0)
                StopMusicInternal();
            lock (_mutex)
            {
                _musicData = null;
                _currentSection = pSection;
                _musicData = _skyDisk.LoadFile(_driverFileBase + FILES_PER_SECTION * pSection);

                _musicTempo0 = 0x78; // init constants taken from idb file, area ~0x1060
                _musicTempo1 = 0xC0;
                _onNextPoll.MusicToProcess = 0;
                _tempo = _aktTime = 0x10001;
                _numberOfChannels = _currentMusic = 0;
                SetupPointers();
                StartDriver();
            }
        }