示例#1
0
        public new IDeviceInfo Clone()
        {
            TrackInfoBasic tib = new TrackInfoBasic();

            tib.output     = output;
            tib.volume     = volume;
            tib.max_volume = max_volume;
            tib._freq      = _freq;
            tib.freq       = freq;
            tib.key        = key;
            tib.tone       = tone;
            return(tib);
        }
示例#2
0
        public nes_vrc6()
        {
            SetClock(DEFAULT_CLOCK);
            SetRate(DEFAULT_RATE);

            halt       = false;
            freq_shift = 0;

            for (int c = 0; c < 2; ++c)
            {
                for (int t = 0; t < 3; ++t)
                {
                    sm[c][t] = 128;
                }
            }

            for (int t = 0; t < 3; ++t)
            {
                trkinfo[t] = new TrackInfoBasic();
            }
        }