summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-09-02 10:30:02 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-09-02 10:30:02 +0200
commite37c5f5048bb440140dc56ce773d105fc2129385 (patch)
tree0dfe0ab9faec524fd1ee085c6cf763aa15484331 /src/sample.h
parent6a96bcf1659d07cd3a7f7e65519007abfaeda2a0 (diff)
Implement master bleed control in the instrument parser and engine.
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sample.h b/src/sample.h
index f00db13..e9cbf18 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -32,16 +32,17 @@
#include "channel.h"
#include "audiofile.h"
-using AudioFiles = std::map<Channel*, AudioFile*>;
+using AudioFiles = std::map<const InstrumentChannel*, AudioFile*>;
-class Sample {
+class Sample
+{
friend class InstrumentParser;
friend class PowerList;
public:
Sample(const std::string& name, float power);
~Sample();
- AudioFile* getAudioFile(InstrumentChannel *instrument_channel);
+ AudioFile* getAudioFile(const Channel& channel);
private:
void addAudioFile(InstrumentChannel* instrument_channel,