From 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jun 2016 20:26:13 +0200 Subject: Add basic latency reporting methods. --- src/inputprocessor.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/inputprocessor.cc') diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 1676090..b83855f 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -61,13 +61,18 @@ bool InputProcessor::process(const std::vector& events, size_t pos, dou return true; } +std::size_t InputProcessor::getLatency() const +{ + return 0; +} + bool InputProcessor::processOnset(const event_t& event, size_t pos, double resample_ratio) { if(!kit.isValid()) { return false; } - size_t ev_instr = event.instrument; + size_t ev_instr = event.instrument; Instrument* instr = nullptr; if(ev_instr < kit.instruments.size()) @@ -115,12 +120,6 @@ bool InputProcessor::processOnset(const event_t& event, size_t pos, double resam for(Channel& ch: kit.channels) { AudioFile* af = sample->getAudioFile(&ch); - if(af != nullptr) - { - // LAZYLOAD: - // DEBUG(inputprocessor, "Requesting preparing of audio file\n"); - // loader.prepare(af); - } if(af == nullptr || !af->isValid()) { //DEBUG(inputprocessor, "Missing AudioFile.\n"); -- cgit v1.2.3