From fda7eaa26e0d796cac151275fc5b9bcb7b312c2b Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 20 Feb 2009 17:22:14 +0000 Subject: Incremented version number. --- src/drumkitparser.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/drumkitparser.cc') 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; } -- cgit v1.2.3