Logo Search packages:      
Sourcecode: ardour version File versions

IO::IO ( Session &  s,
string  name,
int  input_min = -1,
int  input_max = -1,
int  output_min = -1,
int  output_max = -1,
DataType  default_type = DataType::AUDIO 
)

Parameters:
default_type The type of port that will be created by ensure_io and friends if no type is explicitly requested (to avoid breakage).

Definition at line 104 of file io.cc.

References sigc::signal7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, T_accumulator >::connect(), and sigc::mem_fun().

      : _session (s),
        _name (name),
        _default_type(default_type),
        _gain_control (X_("gaincontrol"), *this),
        _gain_automation_curve (0.0, 2.0, 1.0),
        _input_minimum (input_min),
        _input_maximum (input_max),
        _output_minimum (output_min),
        _output_maximum (output_max)
{
      _panner = new Panner (name, _session);
      _active = true;
      _gain = 1.0;
      _desired_gain = 1.0;
      _input_connection = 0;
      _output_connection = 0;
      pending_state_node = 0;
      _ninputs = 0;
      _noutputs = 0;
      no_panner_reset = false;
      deferred_state = 0;

      apply_gain_automation = false;
      _ignore_gain_on_deliver = false;
      
      last_automation_snapshot = 0;

      _gain_automation_state = Off;
      _gain_automation_style = Absolute;

      {
            // IO::Meter is emitted from another thread so the
            // Meter signal must be protected.
            Glib::Mutex::Lock guard (m_meter_signal_lock);
            m_meter_connection = Meter.connect (mem_fun (*this, &IO::meter));
      }

      _session.add_controllable (&_gain_control);
}


Generated by  Doxygen 1.6.0   Back to index