-PortInsert::PortInsert (Session& s, boost::shared_ptr<MuteMaster> mm)
- : IOProcessor (s, true, true, string_compose (_("insert %1"), (bitslot = s.next_insert_id()) + 1), "")
- , _out (new Delivery (s, _output, mm, _name, Delivery::Insert))
+string
+PortInsert::name_and_id_new_insert (Session& s, uint32_t& bitslot)
+{
+ bitslot = s.next_insert_id ();
+ return string_compose (_("insert %1"), bitslot+ 1);
+}
+
+PortInsert::PortInsert (Session& s, boost::shared_ptr<Pannable> pannable, boost::shared_ptr<MuteMaster> mm)
+ : IOProcessor (s, true, true, name_and_id_new_insert (s, _bitslot), "", DataType::AUDIO, true)
+ , _out (new Delivery (s, _output, pannable, mm, _name, Delivery::Insert))