summaryrefslogtreecommitdiff
path: root/dgedit
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-27 19:38:45 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-27 19:38:45 +0200
commitc54cc8eb30fcf12bae72ffcc411283a861981c66 (patch)
tree96e02efda9f8b837496a010ee96eec77afbea053 /dgedit
parent2f58f507a13e4b99f3fb567e60ca5f7e146bf88a (diff)
Write version number in instrument file.
Diffstat (limited to 'dgedit')
-rw-r--r--dgedit/audioextractor.cc3
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);