Modify assertion; as far as I can see, ensure_buffers makes no attempt to reduce the

number of available buffers, even if it is requested.  So in that case the old
assertion will fire erroneously.


git-svn-id: svn://localhost/ardour2/branches/3.0@6229 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-12-01 00:08:32 +00:00
parent 4f445eab11
commit 89c8f18f5e

View File

@ -221,7 +221,7 @@ BufferSet::ensure_buffers(const ChanCount& chns, size_t buffer_capacity)
assert(bufs[0]->capacity() >= buffer_capacity);
}
assert (available() == chns);
assert (available() >= chns);
}
/** Get the capacity (size) of the available buffers of the given type.