summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authordeva <deva>2011-03-01 19:19:02 +0000
committerdeva <deva>2011-03-01 19:19:02 +0000
commite190d38057892b69246391841b234a368bc2b4ad (patch)
tree34f946bc1c3b86997d4cd45e63c433ef07b36486 /src/sample.h
parentc393edc920f8ee126d1bced3500b6bc1ecf86f83 (diff)
MAJOR rewrite of the internals. New input/output 'plugin' system. Still a lot missing.
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/sample.h b/src/sample.h
index e3acff1..c4d82f8 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -29,18 +29,32 @@
#include <map>
#include <string>
+
+#include "channel.h"
#include "audiofile.h"
-typedef std::map< std::string, AudioFile* > AudioFiles;
+typedef std::map< Channel*, AudioFile* > AudioFiles;
class Sample {
public:
- Sample(std::string name);
+ Sample(std::string name = "");
~Sample();
- AudioFiles audiofiles;
+ void addAudioFile(InstrumentChannel *c, AudioFile *a);
+ AudioFile *getAudioFile(InstrumentChannel *c);
+private:
std::string name;
+ AudioFiles audiofiles;
};
+/*
+ * <sample name="kick-r-1">
+ * <audiofile channel="Alesis-3" file="samples/1-kick-r-Alesis-3.wav"/>
+ * <audiofile channel="Amb L-3" file="samples/1-kick-r-Amb L-3.wav"/>
+ * <audiofile channel="Amb R-3" file="samples/1-kick-r-Amb R-3.wav"/>
+ * <audiofile channel="Kick L-3" file="samples/1-kick-r-Kick L-3.wav"/>
+ * <audiofile channel="Kick R-3" file="samples/1-kick-r-Kick R-3.wav"/>
+ * </sample>
+ */
#endif/*__DRUMGIZMO_SAMPLE_H__*/