-bool
-Track::send_silence () const
-{
- bool send_silence;
-
- if (Config->get_tape_machine_mode()) {
-
- /* ADATs work in a strange way..
- they monitor input always when stopped.and auto-input is engaged.
- */
-
- if ((Config->get_monitoring_model() == SoftwareMonitoring)
- && ((_monitoring & MonitorInput) || (_diskstream->record_enabled()))) {
- send_silence = false;
- } else {
- send_silence = true;
- }
-
-
- } else {
-
- /* Other machines switch to input on stop if the track is record enabled,
- regardless of the auto input setting (auto input only changes the
- monitoring state when the transport is rolling)
- */
-
- if ((Config->get_monitoring_model() == SoftwareMonitoring)
- && ((_monitoring & MonitorInput) ||
- (!(_monitoring & MonitorDisk) && (_session.config.get_auto_input () || _diskstream->record_enabled())))){
-
- DEBUG_TRACE (DEBUG::Monitor,
- string_compose ("%1: no roll, use silence = FALSE, monitoring choice %2 recenable %3 sRA %4 autoinput %5\n",
- name(), enum_2_string (_monitoring),
- _diskstream->record_enabled(), _session.actively_recording(),
- _session.config.get_auto_input()));
-
- send_silence = false;
- } else {
- DEBUG_TRACE (DEBUG::Monitor,
- string_compose ("%1: no roll, use silence = TRUE, monitoring choice %2 recenable %3 sRA %4 autoinput %5\n",
- name(), enum_2_string (_monitoring),
- _diskstream->record_enabled(), _session.actively_recording(),
- _session.config.get_auto_input()));
- send_silence = true;
- }
- }
-
- return send_silence;
-}
-