summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 02:07:19 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 02:58:56 +0100
commit4d4721f984e0a22a9874b5d4c4c9ee6674fca856 (patch)
treeeea16bc8e63f9b63299fedd0942575b8e2275371 /src/server/Engine.cpp
parentd2927c78d9719119d7db2f97742f9596d64e4003 (diff)
downloadingen-4d4721f984e0a22a9874b5d4c4c9ee6674fca856.tar.gz
ingen-4d4721f984e0a22a9874b5d4c4c9ee6674fca856.tar.bz2
ingen-4d4721f984e0a22a9874b5d4c4c9ee6674fca856.zip
Fix event timing with PortAudio driver
Diffstat (limited to 'src/server/Engine.cpp')
-rw-r--r--src/server/Engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index c858fc6b..9a7f9e54 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -381,7 +381,7 @@ Engine::event_time()
}
uint64_t
-Engine::current_time(const RunContext& context) const
+Engine::current_time() const
{
return _clock.now_microseconds();
}
@@ -449,7 +449,7 @@ unsigned
Engine::run(uint32_t sample_count)
{
RunContext& ctx = run_context();
- _cycle_start_time = current_time(ctx);
+ _cycle_start_time = current_time();
post_processor()->set_end_time(ctx.end());
@@ -479,7 +479,7 @@ Engine::run(uint32_t sample_count)
// Update load for this cycle
if (ctx.duration() > 0) {
- _run_load.update(current_time(ctx) - _cycle_start_time, ctx.duration());
+ _run_load.update(current_time() - _cycle_start_time, ctx.duration());
}
return n_processed_events;