public PlayerCore(int sampleRate, Cmf cmfFile) { this.sampleRate = sampleRate; this.cmfFile = cmfFile; mr = new MidiReader(new MemoryStream(cmfFile.mididata)); adlib = new Adlib0(sampleRate, 2); for (int i = 0; i < channels.Length; ++i) { channels[i] = new Channel(); } }
public Playback(Cmf cmf) { this.cmf = cmf; init(); }