From efff8551cdba997635d1278d65270c52a804c327 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Tue, 2 Nov 2010 16:09:21 +0000 Subject: [PATCH] Add assertion to export code to make sure the buffer size hasn't changed somehow... git-svn-id: svn://localhost/ardour2/branches/3.0@7949 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_graph_builder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc index 51ca58d880..6d7a36f5cc 100644 --- a/libs/ardour/export_graph_builder.cc +++ b/libs/ardour/export_graph_builder.cc @@ -38,8 +38,10 @@ ExportGraphBuilder::~ExportGraphBuilder () } int -ExportGraphBuilder::process (nframes_t /* frames */, bool last_cycle) +ExportGraphBuilder::process (nframes_t frames, bool last_cycle) { + assert(frames == process_buffer_frames); + for (ChannelMap::iterator it = channels.begin(); it != channels.end(); ++it) { it->first->read (process_buffer, process_buffer_frames); ProcessContext context(process_buffer, process_buffer_frames, 1);