diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-27 19:38:45 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-27 19:38:45 +0200 |
commit | c54cc8eb30fcf12bae72ffcc411283a861981c66 (patch) | |
tree | 96e02efda9f8b837496a010ee96eec77afbea053 /dgedit/audioextractor.cc | |
parent | 2f58f507a13e4b99f3fb567e60ca5f7e146bf88a (diff) |
Write version number in instrument file.
Diffstat (limited to 'dgedit/audioextractor.cc')
-rw-r--r-- | dgedit/audioextractor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sndfile.h> +#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); |