Fix invalid assertion from previous commit, and possibly fix having random garbage...
authorSakari Bergen <sakari.bergen@beatwaves.net>
Tue, 2 Nov 2010 16:27:02 +0000 (16:27 +0000)
committerSakari Bergen <sakari.bergen@beatwaves.net>
Tue, 2 Nov 2010 16:27:02 +0000 (16:27 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7950 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/export_graph_builder.cc

index 6d7a36f5ccb52b2fe700ed9d0f5d8aae08da0fdb..1cd3118eae85e822fce42a45a6c4876e90aa1bc8 100644 (file)
@@ -40,11 +40,11 @@ ExportGraphBuilder::~ExportGraphBuilder ()
 int
 ExportGraphBuilder::process (nframes_t frames, bool last_cycle)
 {
-       assert(frames == process_buffer_frames);
+       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);
+               it->first->read (process_buffer, frames);
+               ProcessContext<Sample> context(process_buffer, frames, 1);
                if (last_cycle) { context.set_flag (ProcessContext<Sample>::EndOfInput); }
                it->second->process (context);
        }