diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-01-27 17:02:40 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-01-27 17:02:40 +0100 |
commit | 2aae9799e1d96d827ad156aeafa549deabd51e5d (patch) | |
tree | 707fb2798cd3b9304fc4af690b557efc9d98a1a8 /src/inputprocessor.cc | |
parent | 053b723adf3948d18f025efed9450d837359edd9 (diff) |
Re-instate instrument v1.0 support.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r-- | src/inputprocessor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index c004933..1570afe 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -147,7 +147,7 @@ bool InputProcessor::processOnset(event_t& event, } } - Sample* sample = instr->sample(event.velocity, event.offset + pos); + const auto sample = instr->sample(event.velocity, event.offset + pos); if(sample == nullptr) { @@ -162,7 +162,7 @@ bool InputProcessor::processOnset(event_t& event, for(Channel& ch: kit.channels) { - AudioFile* af = sample->getAudioFile(ch); + const auto af = sample->getAudioFile(ch); if(af == nullptr || !af->isValid()) { //DEBUG(inputprocessor, "Missing AudioFile.\n"); |