Animatroller.MonoExpander.Main.LoadTrack C# (CSharp) Метод

LoadTrack() приватный Метод

private LoadTrack ( string fileName ) : void
fileName string
Результат void
        private void LoadTrack(string fileName)
        {
            if (this.fmodSystem == null)
                return;

            if (!Path.HasExtension(fileName))
                fileName += ".wav";

            this.log.Info("Play track {0}", Path.GetFileName(fileName));

            var sound = this.fmodSystem.CreateStream(Path.Combine(this.trackPath, fileName), Mode.Default);

            if (this.currentTrkSound.HasValue)
                this.disposeList.Add(this.currentTrkSound);
            this.currentTrkSound = null;
            this.currentTrack = Path.GetFileName(fileName);
            this.currentTrkSound = sound;
        }