From 76186b105d82f7e4bc5693739c65aa71ccaff709 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Mar 2009 19:28:46 +0000 Subject: [PATCH] default click i/o setup is dual mono git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4795 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 7ca817147e..e0221b53cc 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -677,8 +677,6 @@ Session::set_worst_io_latencies () void Session::when_engine_running () { - string first_physical_output; - /* we don't want to run execute this again */ BootMessage (_("Set block size and sample rate")); @@ -725,17 +723,21 @@ Session::when_engine_running () } else { - /* default state for Click */ - - first_physical_output = _engine.get_nth_physical_audio_output (0); + /* default state for Click: dual-mono to first 2 physical outputs */ - if (first_physical_output.length()) { - if (_click_io->add_output_port (first_physical_output, this)) { - // relax, even though its an error - } else { - _clicking = Config->get_clicking (); + for (int physport = 0; physport < 2; ++physport) { + string physical_output = _engine.get_nth_physical_audio_output (physport); + + if (physical_output.length()) { + if (_click_io->add_output_port (physical_output, this)) { + // relax, even though its an error + } } } + + if (_click_io->n_outputs() > 0) { + _clicking = Config->get_clicking (); + } } }