debugging stuff for IO Selector
git-svn-id: svn://localhost/ardour2/trunk@1112 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
10d70bd8a9
commit
52600a05e7
@ -285,7 +285,12 @@ IOSelector::rescan ()
|
|||||||
gint current_page;
|
gint current_page;
|
||||||
vector<string> rowdata;
|
vector<string> rowdata;
|
||||||
|
|
||||||
|
page_selection_connection.disconnect ();
|
||||||
|
|
||||||
current_page = notebook.get_current_page ();
|
current_page = notebook.get_current_page ();
|
||||||
|
|
||||||
|
cerr << "clear notebook\n";
|
||||||
|
|
||||||
pages.clear ();
|
pages.clear ();
|
||||||
|
|
||||||
/* get relevant current JACK ports */
|
/* get relevant current JACK ports */
|
||||||
@ -293,6 +298,7 @@ IOSelector::rescan ()
|
|||||||
ports = session.engine().get_ports ("", JACK_DEFAULT_AUDIO_TYPE, for_input ? JackPortIsOutput : JackPortIsInput);
|
ports = session.engine().get_ports ("", JACK_DEFAULT_AUDIO_TYPE, for_input ? JackPortIsOutput : JackPortIsInput);
|
||||||
|
|
||||||
if (ports == 0) {
|
if (ports == 0) {
|
||||||
|
cerr << "no ports\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -358,8 +364,10 @@ IOSelector::rescan ()
|
|||||||
pages.push_back (TabElem (*client_box, *tab_label));
|
pages.push_back (TabElem (*client_box, *tab_label));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cerr << "notebook should have " << portmap.size() << " pages\n";
|
||||||
|
|
||||||
notebook.set_current_page (current_page);
|
notebook.set_current_page (current_page);
|
||||||
notebook.signal_show().connect (bind (mem_fun (notebook, &Notebook::set_current_page), current_page));
|
page_selection_connection = notebook.signal_show().connect (bind (mem_fun (notebook, &Notebook::set_current_page), current_page));
|
||||||
selector_box.show_all ();
|
selector_box.show_all ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ class IOSelector : public Gtk::VBox {
|
|||||||
boost::shared_ptr<ARDOUR::IO> io;
|
boost::shared_ptr<ARDOUR::IO> io;
|
||||||
bool for_input;
|
bool for_input;
|
||||||
ARDOUR::Port *selected_port;
|
ARDOUR::Port *selected_port;
|
||||||
|
sigc::connection page_selection_connection;
|
||||||
|
|
||||||
Gtk::VBox main_box;
|
Gtk::VBox main_box;
|
||||||
Gtk::HBox port_and_selector_box;
|
Gtk::HBox port_and_selector_box;
|
||||||
|
Loading…
Reference in New Issue
Block a user