projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set 'downloadable' property on Soundcloud uploads
[ardour.git]
/
libs
/
ardour
/
export_channel.cc
diff --git
a/libs/ardour/export_channel.cc
b/libs/ardour/export_channel.cc
index 0e029a01f7731e06759c5535717bf5541bb28a10..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);
+#ifndef NDEBUG
+ (void) frames;
+#else
assert (frames <= (framecnt_t) buffer.capacity());
+#endif
data = buffer.data();
}