コード例 #1
0
ファイル: Playroutine.cs プロジェクト: stefl0n/turrican2tools
        public Playroutine(TFXFile tfx)
        {
            this.tfx = tfx;
            tracks   = new Track[8];
            for (int i = 0; i < tracks.Length; ++i)
            {
                tracks[i] = new Track();
            }

            channels = new Channel[8];
            for (int i = 0; i < channels.Length; ++i)
            {
                channels[i] = new Channel();
            }

            SetSong(0);
        }
コード例 #2
0
ファイル: Playback.cs プロジェクト: stefl0n/turrican2tools
        public Playback(AudioContext actx, TFXFile tfx, byte[] sampledata)
        {
            this.actx = actx;
            PaulaChip = new PaulaChip(actx);


            Playroutine            = new Playroutine(tfx);
            Playroutine.sampledata = sampledata;
            Playroutine.Paula      = PaulaChip;
            Playroutine.TrackstepPositionChanged += Playroutine_TrackstepPositionChanged;
            Playroutine.TempoChanged             += Playroutine_TempoChanged;
            Playroutine.SongEnded += Playroutine_SongEnded;


            /*timer = new Timer();
             * timer.Tick += (s, ee) =>
             * {
             *  Playroutine.VBI();
             *
             * };*/
        }