Esempio n. 1
0
        public bool Init(SongModule module)
        {
            _module = module;

            patbuf = null;

            mh = new MODULEHEADER();

            mh.songlength = (short)(mh.magic1 = 0);

            /*for (i = 0; i < 20; i++)
             *      mh.songname[i] = 0;*/

            mh.positions.Initialize();

            /*for (i = 0; i < 128; i++)
             *      mh.positions[i] = 0;*/
            mh.magic2.Initialize();

            /*for (i = 0; i < 4; i++)
             *      mh.magic2[i] = 0;*/


            for (int i = 0; i < 31; i++)
            {
                mh.samples[i].length   = mh.samples[i].reppos = mh.samples[i].replen = 0;
                mh.samples[i].finetune = (short)(mh.samples[i].volume = 0);

                /*for (j = 0; j < 22; j++)
                 *      mh.samples[i].samplename[j] = 0;*/
            }

            return(true);
        }
Esempio n. 2
0
 public void  Cleanup()
 {
     if (mh != null)
     {
         mh = null;
     }
     if (patbuf != null)
     {
         patbuf = null;
     }
 }
Esempio n. 3
0
 public MODLoader()
 {
     mh       = null;
     patbuf   = null;
     modtypes = new MODTYPE[] { new MODTYPE("M.K.", 4, protracker), new MODTYPE("M!K!", 4, protracker), new MODTYPE("FLT4", 4, startracker), new MODTYPE("4CHN", 4, fasttracker), new MODTYPE("6CHN", 6, fasttracker), new MODTYPE("8CHN", 8, fasttracker), new MODTYPE("CD81", 8, oktalyzer), new MODTYPE("OKTA", 8, oktalyzer), new MODTYPE("16CN", 16, taketracker), new MODTYPE("32CN", 32, taketracker), new MODTYPE("    ", 4, ins15tracker) };
 }