summaryrefslogtreecommitdiff
path: root/src/inputprocessor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
commit2aae9799e1d96d827ad156aeafa549deabd51e5d (patch)
tree707fb2798cd3b9304fc4af690b557efc9d98a1a8 /src/inputprocessor.cc
parent053b723adf3948d18f025efed9450d837359edd9 (diff)
Re-instate instrument v1.0 support.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r--src/inputprocessor.cc4
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");