| 50 | } |
| 51 | |
| 52 | void CInstrumentIO::WriteToModule(const CInstrument &inst, CDocumentFile &file, unsigned inst_index) const { |
| 53 | // Write index and type |
| 54 | file.WriteBlockInt(inst_index); |
| 55 | file.WriteBlockChar(static_cast<char>(inst.GetType())); |
| 56 | |
| 57 | // Store the instrument |
| 58 | DoWriteToModule(inst, file); |
| 59 | |
| 60 | // Store the name |
| 61 | file.WriteStringCounted(inst.GetName()); // // // |
| 62 | } |
| 63 | |
| 64 | void CInstrumentIO::WriteToFTI(const CInstrument &inst, CSimpleFile &file) const { |
| 65 | // Write header |
no test coverage detected