diff options
author | Robin Gareus <robin@gareus.org> | 2012-12-23 19:31:45 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-12-23 19:31:45 +0000 |
commit | 8380c06e32704258459091d649a0eaa4d1d62814 (patch) | |
tree | 9c840b0ac2da6d6eca9c03663ac47a40d5b05a8d | |
parent | 836948506a1a0d291c99ff0094586dadfe1af51f (diff) |
another buffersize fix (see #5221 and rev13715)
git-svn-id: svn://localhost/ardour2/branches/3.0@13720 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/diskstream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc index f938c09ef3..a359f228e8 100644 --- a/libs/ardour/diskstream.cc +++ b/libs/ardour/diskstream.cc @@ -224,8 +224,8 @@ Diskstream::realtime_set_speed (double sp, bool global) if (new_speed != _actual_speed) { - framecnt_t required_wrap_size = (framecnt_t) floor (_session.get_block_size() * - fabs (new_speed)) + 1; + framecnt_t required_wrap_size = (framecnt_t) ceil (_session.get_block_size() * + fabs (new_speed)) + 2; if (required_wrap_size > wrap_buffer_size) { _buffer_reallocation_required = true; |