summaryrefslogtreecommitdiff
path: root/src/drumkitparser.cc
diff options
context:
space:
mode:
authordeva <deva>2009-02-20 17:22:14 +0000
committerdeva <deva>2009-02-20 17:22:14 +0000
commitfda7eaa26e0d796cac151275fc5b9bcb7b312c2b (patch)
tree7979c3678a08439218024c38cf04cc69d6dbbb10 /src/drumkitparser.cc
parent3a2fbb13a8571832fd8b7bd7b3e378b3f38814b2 (diff)
Incremented version number.
Diffstat (limited to 'src/drumkitparser.cc')
-rw-r--r--src/drumkitparser.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drumkitparser.cc b/src/drumkitparser.cc
index 921eefa..ae557dd 100644
--- a/src/drumkitparser.cc
+++ b/src/drumkitparser.cc
@@ -28,7 +28,7 @@
#define DIR_SEPERATOR '/'
-DrumKitParser::DrumKitParser(std::string kitfile, bool preload)
+DrumKitParser::DrumKitParser(std::string kitfile, bool preload, int min_velocity)
{
std::string file;
std::string path;
@@ -44,6 +44,7 @@ DrumKitParser::DrumKitParser(std::string kitfile, bool preload)
}
this->preload = preload;
+ this->min_velocity = min_velocity;
dk = NULL;
fd = fopen(file.c_str(), "r");
@@ -79,7 +80,7 @@ void DrumKitParser::startTag(std::string name, std::map< std::string, std::strin
}
if(name == "audiofile") {
- AudioFile *af = new AudioFile(attributes["name"], preload);
+ AudioFile *af = new AudioFile(attributes["name"], preload, min_velocity);
af->channel = attributes["channel"];
lastsample->audiofiles[attributes["name"]] = af;
}