prepare for implementing new ins format
This commit is contained in:
parent
afcc292c0c
commit
dbcd7f31a8
3 changed files with 78 additions and 0 deletions
|
|
@ -23,6 +23,18 @@
|
|||
#include "../ta-log.h"
|
||||
#include "../fileutils.h"
|
||||
|
||||
void DivInstrument::putInsData2(SafeWriter* w, bool fui) {
|
||||
size_t blockStartSeek, blockEndSeek;
|
||||
|
||||
if (fui) {
|
||||
w->write("FINS",4);
|
||||
} else {
|
||||
w->write("INST",4);
|
||||
blockStartSeek=w->tell();
|
||||
w->writeI(0);
|
||||
}
|
||||
}
|
||||
|
||||
void DivInstrument::putInsData(SafeWriter* w) {
|
||||
size_t blockStartSeek, blockEndSeek;
|
||||
|
||||
|
|
|
|||
|
|
@ -571,6 +571,12 @@ struct DivInstrument {
|
|||
*/
|
||||
void putInsData(SafeWriter* w);
|
||||
|
||||
/**
|
||||
* save the instrument to a SafeWriter using new format.
|
||||
* @param w the SafeWriter in question.
|
||||
*/
|
||||
void putInsData2(SafeWriter* w, bool fui=false);
|
||||
|
||||
/**
|
||||
* read instrument data in .fui format.
|
||||
* @param reader the reader.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue