diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-09-02 10:30:02 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-09-02 10:30:02 +0200 |
commit | e37c5f5048bb440140dc56ce773d105fc2129385 (patch) | |
tree | 0dfe0ab9faec524fd1ee085c6cf763aa15484331 /src/sample.h | |
parent | 6a96bcf1659d07cd3a7f7e65519007abfaeda2a0 (diff) |
Implement master bleed control in the instrument parser and engine.
Diffstat (limited to 'src/sample.h')
-rw-r--r-- | src/sample.h | 7 |
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, |