summaryrefslogtreecommitdiff
path: root/src/drumkitparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumkitparser.h')
-rw-r--r--src/drumkitparser.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/drumkitparser.h b/src/drumkitparser.h
index 22fe83e..783ed5f 100644
--- a/src/drumkitparser.h
+++ b/src/drumkitparser.h
@@ -32,27 +32,19 @@
class DrumKitParser : public SAXParser {
public:
- DrumKitParser(std::string kitfile, bool preload = false, int min_velocity = -1);
+ DrumKitParser(const std::string &kitfile, DrumKit &kit);
~DrumKitParser();
- void startTag(std::string name, std::map< std::string, std::string> attributes);
+ void startTag(std::string name,
+ std::map< std::string, std::string> attributes);
void endTag(std::string name);
- DrumKit *getDrumkit();
-
protected:
int readData(char *data, size_t size);
private:
FILE *fd;
- DrumKit *dk;
-
- Sample *lastsample;
- Instrument *lastinstrument;
- Velocity *lastvelocity;
-
- bool preload;
- int min_velocity;
+ DrumKit &kit;
};
#endif/*__DRUMGIZMO_DRUMKITPARSER_H__*/