13
0

Fix invalid assertion from previous commit, and possibly fix having random garbage at end of export.

git-svn-id: svn://localhost/ardour2/branches/3.0@7950 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sakari Bergen 2010-11-02 16:27:02 +00:00
parent efff8551cd
commit a41525c3f7

View 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);
}