Fix SCons build.

git-svn-id: svn://localhost/ardour2/branches/3.0@5112 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-05-25 17:56:34 +00:00
parent 889951245d
commit 139d621103
4 changed files with 19 additions and 15 deletions

View file

@ -224,6 +224,7 @@ port_matrix_row_labels.cc
processor_box.cc processor_box.cc
prompter.cc prompter.cc
public_editor.cc public_editor.cc
rc_option_editor.cc
region_gain_line.cc region_gain_line.cc
region_selection.cc region_selection.cc
region_view.cc region_view.cc
@ -237,6 +238,7 @@ selection.cc
send_ui.cc send_ui.cc
session_import_dialog.cc session_import_dialog.cc
session_metadata_dialog.cc session_metadata_dialog.cc
session_option_editor.cc
sfdb_ui.cc sfdb_ui.cc
simpleline.cc simpleline.cc
simplerect.cc simplerect.cc

View file

@ -65,6 +65,7 @@ control_protocol_search_path.cc
crossfade.cc crossfade.cc
cycle_timer.cc cycle_timer.cc
default_click.cc default_click.cc
delivery.cc
directory_names.cc directory_names.cc
diskstream.cc diskstream.cc
element_import_handler.cc element_import_handler.cc
@ -145,6 +146,7 @@ session.cc
session_butler.cc session_butler.cc
session_click.cc session_click.cc
session_command.cc session_command.cc
session_configuration.cc
session_directory.cc session_directory.cc
session_events.cc session_events.cc
session_export.cc session_export.cc

View file

@ -571,6 +571,7 @@ void MackieControlProtocol::connect_session_signals()
connections_back = session->TransportStateChange.connect( ( mem_fun (*this, &MackieControlProtocol::notify_transport_state_changed) ) ); connections_back = session->TransportStateChange.connect( ( mem_fun (*this, &MackieControlProtocol::notify_transport_state_changed) ) );
// receive punch-in and punch-out // receive punch-in and punch-out
connections_back = Config->ParameterChanged.connect( ( mem_fun (*this, &MackieControlProtocol::notify_parameter_changed) ) ); connections_back = Config->ParameterChanged.connect( ( mem_fun (*this, &MackieControlProtocol::notify_parameter_changed) ) );
session->config.ParameterChanged.connect ( ( mem_fun (*this, &MackieControlProtocol::notify_parameter_changed) ) );
// receive rude solo changed // receive rude solo changed
connections_back = session->SoloActive.connect( ( mem_fun (*this, &MackieControlProtocol::notify_solo_active_changed) ) ); connections_back = session->SoloActive.connect( ( mem_fun (*this, &MackieControlProtocol::notify_solo_active_changed) ) );
@ -1364,26 +1365,26 @@ LedState MackieControlProtocol::loop_release( Button & button )
LedState MackieControlProtocol::punch_in_press( Button & button ) LedState MackieControlProtocol::punch_in_press( Button & button )
{ {
bool state = !Config->get_punch_in(); bool state = !session->config.get_punch_in();
Config->set_punch_in( state ); session->config.set_punch_in( state );
return state; return state;
} }
LedState MackieControlProtocol::punch_in_release( Button & button ) LedState MackieControlProtocol::punch_in_release( Button & button )
{ {
return Config->get_punch_in(); return session->config.get_punch_in();
} }
LedState MackieControlProtocol::punch_out_press( Button & button ) LedState MackieControlProtocol::punch_out_press( Button & button )
{ {
bool state = !Config->get_punch_out(); bool state = !session->config.get_punch_out();
Config->set_punch_out( state ); session->config.set_punch_out( state );
return state; return state;
} }
LedState MackieControlProtocol::punch_out_release( Button & button ) LedState MackieControlProtocol::punch_out_release( Button & button )
{ {
return Config->get_punch_out(); return session->config.get_punch_out();
} }
LedState MackieControlProtocol::home_press( Button & button ) LedState MackieControlProtocol::home_press( Button & button )
@ -1436,25 +1437,24 @@ LedState MackieControlProtocol::global_solo_release( Button & button )
// Session signals // Session signals
/////////////////////////////////////////// ///////////////////////////////////////////
void MackieControlProtocol::notify_parameter_changed( const char * name_str ) void MackieControlProtocol::notify_parameter_changed (std::string const & p)
{ {
string name( name_str ); if ( p == "punch-in" )
if ( name == "punch-in" )
{ {
update_global_button( "punch_in", Config->get_punch_in() ); update_global_button( "punch_in", session->config.get_punch_in() );
} }
else if ( name == "punch-out" ) else if ( p == "punch-out" )
{ {
update_global_button( "punch_out", Config->get_punch_out() ); update_global_button( "punch_out", session->config.get_punch_out() );
} }
else if ( name == "clicking" ) else if ( p == "clicking" )
{ {
update_global_button( "clicking", Config->get_clicking() ); update_global_button( "clicking", Config->get_clicking() );
} }
else else
{ {
#ifdef DEBUG #ifdef DEBUG
cout << "parameter changed: " << name << endl; cout << "parameter changed: " << p << endl;
#endif #endif
} }
} }

View file

@ -118,7 +118,7 @@ class MackieControlProtocol
void notify_record_state_changed(); void notify_record_state_changed();
void notify_transport_state_changed(); void notify_transport_state_changed();
// mainly to pick up punch-in and punch-out // mainly to pick up punch-in and punch-out
void notify_parameter_changed( const char * ); void notify_parameter_changed( std::string const & );
void notify_solo_active_changed( bool ); void notify_solo_active_changed( bool );
/// Turn smpte on and beats off, or vice versa, depending /// Turn smpte on and beats off, or vice versa, depending