projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trim dependence on evoral types.hpp and Beats.hpp
[ardour.git]
/
libs
/
ardour
/
audio_port.cc
diff --git
a/libs/ardour/audio_port.cc
b/libs/ardour/audio_port.cc
index 6a86360b6937522333d77d84daa0fe5c3f0322cb..e2bb20dbe958c20753422e202e0d74cf8a911fa8 100644
(file)
--- a/
libs/ardour/audio_port.cc
+++ b/
libs/ardour/audio_port.cc
@@
-56,14
+56,11
@@
AudioPort::cycle_start (pframes_t nframes)
}
void
}
void
-AudioPort::cycle_end (pframes_t)
+AudioPort::cycle_end (pframes_t
nframes
)
{
if (sends_output() && !_buffer->written()) {
{
if (sends_output() && !_buffer->written()) {
- /* we can't use nframes here because the current buffer capacity may
- be shorter than the full buffer size if we split the cycle.
- */
- if (_buffer->capacity () > 0) {
- _buffer->silence (_buffer->capacity());
+ if (_buffer->capacity() >= nframes) {
+ _buffer->silence (nframes);
}
}
}
}
}
}
@@
-82,7
+79,7
@@
AudioPort::get_audio_buffer (pframes_t nframes)
return *_buffer;
}
return *_buffer;
}
-Sample*
+Sample*
AudioPort::engine_get_whole_audio_buffer ()
{
/* caller must hold process lock */
AudioPort::engine_get_whole_audio_buffer ()
{
/* caller must hold process lock */