From 4be36c5ce657bb865f3ff2284c477b727c2ec2c9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2012 17:55:52 +0000 Subject: Process notifications when no events are pending (prevent overflow). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4561 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Context.cpp | 4 +++- src/server/PostProcessor.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/Context.cpp b/src/server/Context.cpp index 745b849f..7d47800f 100644 --- a/src/server/Context.cpp +++ b/src/server/Context.cpp @@ -97,8 +97,10 @@ Context::emit_notifications(FrameTime end) Raul::error("Error unmapping notification key URI\n"); } } else { - Raul::error("Error reading from notification ring\n"); + Raul::error("Error reading body from notification ring\n"); } + } else { + Raul::error("Error reading header from notification ring\n"); } } } diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp index 984f69b5..92d49d43 100644 --- a/src/server/PostProcessor.cpp +++ b/src/server/PostProcessor.cpp @@ -61,6 +61,8 @@ PostProcessor::process() Event* ev = _head.get(); if (!ev) { + // Process audio thread notifications up until end + _engine.process_context().emit_notifications(end_time); return; } -- cgit v1.2.1