Skip to content

Commit da6fe44

Browse files
committed
VBAP: add an assert
1 parent e9eb694 commit da6fe44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vbaprenderer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ class VbapRenderer::Source : public _base::Source
192192

193193
bool get_output_levels(sample_type* first, sample_type* last) const
194194
{
195+
assert(size_t(std::distance(first, last))
196+
== parent.get_output_list().size());
195197
auto current = first;
196198

197199
for (const auto& out: rtlist_proxy<Output>(parent.get_output_list()))

0 commit comments

Comments
 (0)