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
This commit is contained in:
Sakari Bergen 2010-11-02 16:09:21 +00:00
parent 544f62d4be
commit efff8551cd

View file

@ -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);