Beispiel #1
0
 /// <summary>
 /// Export the Midi lump to a midi file
 /// </summary>
 public void ExportMidiToFile(string filename)
 {
     if (this._rawData != null)
     {
         Rott2DLumpWriter exportMidi = new Rott2DLumpWriter(ref this._rawData);
         this.isReady = exportMidi.ExportLumpToFile(filename, Rott2DLumpWriter.MIDI_LUMP_EXT);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Export the voc lump to a voc file
 /// </summary>
 public void ExportVocToFile(string filename)
 {
     // plain raw bytes dump to disk
     if (this._rawData != null)
     {
         using (Rott2DLumpWriter exportVoc = new Rott2DLumpWriter(ref this._rawData))
         {
             this.isReady = exportVoc.ExportLumpToFile(filename, Rott2DLumpWriter.VOC_LUMP_EXT);
         }
     }
 }