diff options
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"); |