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); }
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(); * * };*/ }