示例#1
0
        public HITThread(uint TrackID)
        {
            Owners         = new List <int>();
            Notes          = new List <HITNoteEntry>();
            NotesByChannel = new Dictionary <SoundEffectInstance, HITNoteEntry>();

            audContent = FSO.Content.Content.Get().Audio;
            SetTrack(TrackID);

            Patch      = ActiveTrack.SoundID;
            SimpleMode = true;
            PlaySimple = true; //play next frame, so we have time to set volumes.
        }
示例#2
0
        public HITThread(HITFile Src, HITVM VM)
        {
            this.Src     = Src;
            this.VM      = VM;
            Registers    = new int[16];
            Registers[1] = 12;
            LocalVar     = new int[54];
            ObjectVar    = new int[29];

            Notes          = new List <HITNoteEntry>();
            NotesByChannel = new Dictionary <SoundEffectInstance, HITNoteEntry>();
            Owners         = new List <int>();

            Stack      = new Stack <int>();
            audContent = FSO.Content.Content.Get().Audio;
        }
示例#3
0
        public HITThread(uint TrackID)
        {
            Owners = new List<int>();
            Notes = new List<HITNoteEntry>();
            NotesByChannel = new Dictionary<SoundEffectInstance, HITNoteEntry>();

            audContent = Content.Content.Get().Audio;
            SetTrack(TrackID);

            Patch = ActiveTrack.SoundID;
            SimpleMode = true;
            PlaySimple = true; //play next frame, so we have time to set volumes.
        }
示例#4
0
        private bool SimpleMode; //certain sounds play with no HIT.

        #endregion Fields

        #region Constructors

        public HITThread(HITFile Src, HITVM VM)
        {
            this.Src = Src;
            this.VM = VM;
            Registers = new int[16];
            Registers[1] = 12; //gender (offset into object var table)
            LocalVar = new int[54];
            ObjectVar = new int[29];

            Notes = new List<HITNoteEntry>();
            NotesByChannel = new Dictionary<SoundEffectInstance, HITNoteEntry>();
            Owners = new List<int>();

            Stack = new Stack<int>();
            audContent = Content.Content.Get().Audio;
        }