projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge (squash) with scenechange topic branch to provide MIDI-driven scene change...
[ardour.git]
/
libs
/
ardour
/
export_channel.cc
diff --git
a/libs/ardour/export_channel.cc
b/libs/ardour/export_channel.cc
index c67f33bb918e5dc3b4a0f69b1328a7d2a123c6d3..fc71d8536f049cfe413642bb1efd8b9d4b810506 100644
(file)
--- a/
libs/ardour/export_channel.cc
+++ b/
libs/ardour/export_channel.cc
@@
-239,7
+239,11
@@
RouteExportChannel::read (Sample const *& data, framecnt_t frames) const
{
assert(processor);
AudioBuffer const & buffer = processor->get_capture_buffers().get_audio (channel);
{
assert(processor);
AudioBuffer const & buffer = processor->get_capture_buffers().get_audio (channel);
- assert (frames <= (framecnt_t) buffer.size());
+#ifndef NDEBUG
+ (void) frames;
+#else
+ assert (frames <= (framecnt_t) buffer.capacity());
+#endif
data = buffer.data();
}
data = buffer.data();
}