}
Track::RecEnableControllable::RecEnableControllable (Track& s)
- : Controllable (X_("recenable"), string() /* XXX missing URI */), track (s)
+ : Controllable (X_("recenable")), track (s)
{
}
}
if (session_state_changing) {
+ if (_session.transport_speed() != 0.0f) {
+ /* we're rolling but some state is changing (e.g. our diskstream contents)
+ so we cannot use them. Be silent till this is over. Don't declick.
- /* XXX is this safe to do against transport state changes? */
-
- passthru_silence (start_frame, end_frame, nframes, 0);
- return 0;
+ XXX note the absurdity of ::no_roll() being called when we ARE rolling!
+ */
+ passthru_silence (start_frame, end_frame, nframes, 0);
+ return 0;
+ }
+ /* we're really not rolling, so we're either delivery silence or actually
+ monitoring, both of which are safe to do while session_state_changing is true.
+ */
}
diskstream()->check_record_status (start_frame, nframes, can_record);