diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-11-02 16:09:21 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-11-02 16:09:21 +0000 |
commit | efff8551cdba997635d1278d65270c52a804c327 (patch) | |
tree | 82b67ddf96adb8a25658f4374b15c9ae1eea2706 /libs/ardour/export_graph_builder.cc | |
parent | 544f62d4be67284b3d68fb2260b15d6002ed9a2d (diff) |
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
Diffstat (limited to 'libs/ardour/export_graph_builder.cc')
-rw-r--r-- | libs/ardour/export_graph_builder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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<Sample> context(process_buffer, process_buffer_frames, 1); |