From c54cc8eb30fcf12bae72ffcc411283a861981c66 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 27 Apr 2014 19:38:45 +0200 Subject: Write version number in instrument file. --- dgedit/audioextractor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dgedit/audioextractor.cc b/dgedit/audioextractor.cc index f4fd4f3..71e0b2a 100644 --- a/dgedit/audioextractor.cc +++ b/dgedit/audioextractor.cc @@ -33,6 +33,8 @@ #include +#define INSTRUMENT_VERSION "2.0" + typedef struct { SNDFILE *fh; float *data; @@ -184,6 +186,7 @@ void AudioExtractor::exportSelections() doc.appendChild(header); QDomElement instrument = doc.createElement("instrument"); + instrument.setAttribute("version", INSTRUMENT_VERSION); instrument.setAttribute("name", prefix); doc.appendChild(instrument); -- cgit v1.2.3