mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
fix resampling ratio when stopped (corner case - not typically called)
This commit is contained in:
parent
ec2ba35997
commit
302fe227b8
1 changed files with 6 additions and 1 deletions
|
|
@ -645,7 +645,12 @@ Port::set_state (const XMLNode& node, int)
|
|||
/*static*/ void
|
||||
Port::set_speed_ratio (double s) {
|
||||
/* see VMResampler::set_rratio() for min/max range */
|
||||
_speed_ratio = std::min ((double) Config->get_max_transport_speed(), std::max (0.02, fabs (s)));
|
||||
if (s == 0.0) {
|
||||
/* no resampling when stopped */
|
||||
_speed_ratio = 1.0;
|
||||
} else {
|
||||
_speed_ratio = std::min ((double) Config->get_max_transport_speed(), std::max (0.02, fabs (s)));
|
||||
}
|
||||
}
|
||||
|
||||
/*static*/ void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue