Example #1
0
 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();
     }
 }
Example #2
0
 public Playback(Cmf cmf)
 {
     this.cmf = cmf;
     init();
 }