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:
parent
4f445eab11
commit
89c8f18f5e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user