summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-05-03 23:17:15 +0200
committerRobin Gareus <robin@gareus.org>2015-05-03 23:17:15 +0200
commitaee658ef96eb77a8fac1cc70bc06e935de7c0fac (patch)
treed48c95aed6f8ca9f0c7e7c15ae7942ae4038b086 /libs/ardour/audioengine.cc
parent2e4428bc979b29eaa640144d992b41d6cb4495fb (diff)
no more noise during startup.
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index b18d5e1af2..a92e7d4524 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -205,7 +205,12 @@ AudioEngine::process_callback (pframes_t nframes)
if (_session) {
Xrun();
}
- _processed_frames = next_processed_frames;
+ /* really only JACK requires this
+ * (other backends clear the output buffers
+ * before the process_callback. it may even be
+ * jack/alsa only). but better safe than sorry.
+ */
+ PortManager::silence_physical (nframes);
return 0;
}