diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 20:26:13 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 20:26:13 +0200 |
commit | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (patch) | |
tree | 8bcb0a8ee9431ae5e00369354b22ed5763cc75fc /src/inputprocessor.cc | |
parent | e43a808290630b4a0810b283ad1e3b9411bb3016 (diff) |
Add basic latency reporting methods.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r-- | src/inputprocessor.cc | 13 |
1 files changed, 6 insertions, 7 deletions
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<event_t>& 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"); |