mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Silence detect: constrain duration in GUI.
This commit is contained in:
parent
a6caf6ed3a
commit
21c1d0f832
1 changed files with 2 additions and 2 deletions
|
|
@ -275,13 +275,13 @@ StripSilenceDialog::threshold_changed ()
|
|||
framecnt_t
|
||||
StripSilenceDialog::minimum_length () const
|
||||
{
|
||||
return _minimum_length->current_duration (views.front().view->region()->position());
|
||||
return std::max((framecnt_t)1, _minimum_length->current_duration (views.front().view->region()->position()));
|
||||
}
|
||||
|
||||
framecnt_t
|
||||
StripSilenceDialog::fade_length () const
|
||||
{
|
||||
return _fade_length->current_duration (views.front().view->region()->position());
|
||||
return std::max((framecnt_t)0, _fade_length->current_duration (views.front().view->region()->position()));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue