mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 21:25:46 +01:00
Fix some more warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@5425 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
16b964020f
commit
5eaf61242f
7 changed files with 60 additions and 60 deletions
|
|
@ -28,7 +28,7 @@ class Interpolation {
|
|||
double target_speed() const { return _target_speed; }
|
||||
double speed() const { return _speed; }
|
||||
|
||||
void add_channel_to (int input_buffer_size, int output_buffer_size) { phase.push_back (0.0); }
|
||||
void add_channel_to (int /*input_buffer_size*/, int /*output_buffer_size*/) { phase.push_back (0.0); }
|
||||
void remove_channel_from () { phase.pop_back (); }
|
||||
|
||||
void reset () {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ using namespace PBD;
|
|||
using namespace std;
|
||||
|
||||
ControlProtocol*
|
||||
new_mackie_protocol (ControlProtocolDescriptor* descriptor, Session* s)
|
||||
new_mackie_protocol (ControlProtocolDescriptor*, Session* s)
|
||||
{
|
||||
if ( Config->get_mmc_port_name().substr(0,3) == "mcu" )
|
||||
{
|
||||
|
|
@ -62,7 +62,7 @@ new_mackie_protocol (ControlProtocolDescriptor* descriptor, Session* s)
|
|||
}
|
||||
|
||||
void
|
||||
delete_mackie_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
|
||||
delete_mackie_protocol (ControlProtocolDescriptor*, ControlProtocol* cp)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -81,7 +81,7 @@ delete_mackie_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol*
|
|||
prevent loading of the lib.
|
||||
*/
|
||||
bool
|
||||
probe_mackie_protocol (ControlProtocolDescriptor* descriptor)
|
||||
probe_mackie_protocol (ControlProtocolDescriptor*)
|
||||
{
|
||||
return MackieControlProtocol::probe();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -998,7 +998,7 @@ void MackieControlProtocol::notify_record_enable_changed( RouteSignal * route_si
|
|||
}
|
||||
}
|
||||
|
||||
void MackieControlProtocol::notify_active_changed( RouteSignal * route_signal )
|
||||
void MackieControlProtocol::notify_active_changed (RouteSignal *)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -1221,7 +1221,7 @@ void MackieControlProtocol::poll_session_data()
|
|||
// Transport Buttons
|
||||
/////////////////////////////////////
|
||||
|
||||
LedState MackieControlProtocol::frm_left_press( Button & button )
|
||||
LedState MackieControlProtocol::frm_left_press (Button &)
|
||||
{
|
||||
// can use first_mark_before/after as well
|
||||
unsigned long elapsed = _frm_left_last.restart();
|
||||
|
|
@ -1249,12 +1249,12 @@ LedState MackieControlProtocol::frm_left_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::frm_left_release( Button & button )
|
||||
LedState MackieControlProtocol::frm_left_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::frm_right_press( Button & button )
|
||||
LedState MackieControlProtocol::frm_right_press (Button &)
|
||||
{
|
||||
// can use first_mark_before/after as well
|
||||
Location * loc = session->locations()->first_location_after (
|
||||
|
|
@ -1264,34 +1264,34 @@ LedState MackieControlProtocol::frm_right_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::frm_right_release( Button & button )
|
||||
LedState MackieControlProtocol::frm_right_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::stop_press( Button & button )
|
||||
LedState MackieControlProtocol::stop_press (Button &)
|
||||
{
|
||||
session->request_stop();
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::stop_release( Button & button )
|
||||
LedState MackieControlProtocol::stop_release (Button &)
|
||||
{
|
||||
return session->transport_stopped();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::play_press( Button & button )
|
||||
LedState MackieControlProtocol::play_press (Button &)
|
||||
{
|
||||
session->request_transport_speed( 1.0 );
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::play_release( Button & button )
|
||||
LedState MackieControlProtocol::play_release (Button &)
|
||||
{
|
||||
return session->transport_rolling();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::record_press( Button & button )
|
||||
LedState MackieControlProtocol::record_press (Button &)
|
||||
{
|
||||
if ( session->get_record_enabled() )
|
||||
session->disable_record( false );
|
||||
|
|
@ -1300,7 +1300,7 @@ LedState MackieControlProtocol::record_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::record_release( Button & button )
|
||||
LedState MackieControlProtocol::record_release (Button &)
|
||||
{
|
||||
if ( session->get_record_enabled() )
|
||||
{
|
||||
|
|
@ -1313,7 +1313,7 @@ LedState MackieControlProtocol::record_release( Button & button )
|
|||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::rewind_press( Button & button )
|
||||
LedState MackieControlProtocol::rewind_press (Button &)
|
||||
{
|
||||
_jog_wheel.push( JogWheel::speed );
|
||||
_jog_wheel.transport_direction( -1 );
|
||||
|
|
@ -1321,7 +1321,7 @@ LedState MackieControlProtocol::rewind_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::rewind_release( Button & button )
|
||||
LedState MackieControlProtocol::rewind_release (Button &)
|
||||
{
|
||||
_jog_wheel.pop();
|
||||
_jog_wheel.transport_direction( 0 );
|
||||
|
|
@ -1332,7 +1332,7 @@ LedState MackieControlProtocol::rewind_release( Button & button )
|
|||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::ffwd_press( Button & button )
|
||||
LedState MackieControlProtocol::ffwd_press (Button &)
|
||||
{
|
||||
_jog_wheel.push( JogWheel::speed );
|
||||
_jog_wheel.transport_direction( 1 );
|
||||
|
|
@ -1340,7 +1340,7 @@ LedState MackieControlProtocol::ffwd_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::ffwd_release( Button & button )
|
||||
LedState MackieControlProtocol::ffwd_release (Button &)
|
||||
{
|
||||
_jog_wheel.pop();
|
||||
_jog_wheel.transport_direction( 0 );
|
||||
|
|
@ -1351,83 +1351,83 @@ LedState MackieControlProtocol::ffwd_release( Button & button )
|
|||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::loop_press( Button & button )
|
||||
LedState MackieControlProtocol::loop_press (Button &)
|
||||
{
|
||||
session->request_play_loop( !session->get_play_loop() );
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::loop_release( Button & button )
|
||||
LedState MackieControlProtocol::loop_release (Button &)
|
||||
{
|
||||
return session->get_play_loop();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::punch_in_press( Button & button )
|
||||
LedState MackieControlProtocol::punch_in_press (Button &)
|
||||
{
|
||||
bool state = !session->config.get_punch_in();
|
||||
session->config.set_punch_in( state );
|
||||
return state;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::punch_in_release( Button & button )
|
||||
LedState MackieControlProtocol::punch_in_release (Button &)
|
||||
{
|
||||
return session->config.get_punch_in();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::punch_out_press( Button & button )
|
||||
LedState MackieControlProtocol::punch_out_press (Button &)
|
||||
{
|
||||
bool state = !session->config.get_punch_out();
|
||||
session->config.set_punch_out( state );
|
||||
return state;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::punch_out_release( Button & button )
|
||||
LedState MackieControlProtocol::punch_out_release (Button &)
|
||||
{
|
||||
return session->config.get_punch_out();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::home_press( Button & button )
|
||||
LedState MackieControlProtocol::home_press (Button &)
|
||||
{
|
||||
session->goto_start();
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::home_release( Button & button )
|
||||
LedState MackieControlProtocol::home_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::end_press( Button & button )
|
||||
LedState MackieControlProtocol::end_press (Button &)
|
||||
{
|
||||
session->goto_end();
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::end_release( Button & button )
|
||||
LedState MackieControlProtocol::end_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::clicking_press( Button & button )
|
||||
LedState MackieControlProtocol::clicking_press (Button &)
|
||||
{
|
||||
bool state = !Config->get_clicking();
|
||||
Config->set_clicking( state );
|
||||
return state;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::clicking_release( Button & button )
|
||||
LedState MackieControlProtocol::clicking_release (Button &)
|
||||
{
|
||||
return Config->get_clicking();
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::global_solo_press( Button & button )
|
||||
LedState MackieControlProtocol::global_solo_press (Button &)
|
||||
{
|
||||
bool state = !session->soloing();
|
||||
session->set_all_solo ( state );
|
||||
return state;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::global_solo_release( Button & button )
|
||||
LedState MackieControlProtocol::global_solo_release (Button &)
|
||||
{
|
||||
return session->soloing();
|
||||
}
|
||||
|
|
@ -1529,7 +1529,7 @@ void MackieControlProtocol::notify_transport_state_changed()
|
|||
/////////////////////////////////////
|
||||
// Bank Switching
|
||||
/////////////////////////////////////
|
||||
LedState MackieControlProtocol::left_press( Button & button )
|
||||
LedState MackieControlProtocol::left_press (Button &)
|
||||
{
|
||||
Sorted sorted = get_sorted_routes();
|
||||
if ( sorted.size() > route_table.size() )
|
||||
|
|
@ -1550,12 +1550,12 @@ LedState MackieControlProtocol::left_press( Button & button )
|
|||
}
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::left_release( Button & button )
|
||||
LedState MackieControlProtocol::left_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::right_press( Button & button )
|
||||
LedState MackieControlProtocol::right_press (Button &)
|
||||
{
|
||||
Sorted sorted = get_sorted_routes();
|
||||
if ( sorted.size() > route_table.size() )
|
||||
|
|
@ -1576,12 +1576,12 @@ LedState MackieControlProtocol::right_press( Button & button )
|
|||
}
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::right_release( Button & button )
|
||||
LedState MackieControlProtocol::right_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::channel_left_press( Button & button )
|
||||
LedState MackieControlProtocol::channel_left_press (Button &)
|
||||
{
|
||||
Sorted sorted = get_sorted_routes();
|
||||
if ( sorted.size() > route_table.size() )
|
||||
|
|
@ -1595,12 +1595,12 @@ LedState MackieControlProtocol::channel_left_press( Button & button )
|
|||
}
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::channel_left_release( Button & button )
|
||||
LedState MackieControlProtocol::channel_left_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::channel_right_press( Button & button )
|
||||
LedState MackieControlProtocol::channel_right_press (Button &)
|
||||
{
|
||||
Sorted sorted = get_sorted_routes();
|
||||
if ( sorted.size() > route_table.size() )
|
||||
|
|
@ -1614,7 +1614,7 @@ LedState MackieControlProtocol::channel_right_press( Button & button )
|
|||
}
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::channel_right_release( Button & button )
|
||||
LedState MackieControlProtocol::channel_right_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
|
@ -1622,7 +1622,7 @@ LedState MackieControlProtocol::channel_right_release( Button & button )
|
|||
/////////////////////////////////////
|
||||
// Functions
|
||||
/////////////////////////////////////
|
||||
LedState MackieControlProtocol::marker_press( Button & button )
|
||||
LedState MackieControlProtocol::marker_press (Button &)
|
||||
{
|
||||
// cut'n'paste from LocationUI::add_new_location()
|
||||
string markername;
|
||||
|
|
@ -1638,7 +1638,7 @@ LedState MackieControlProtocol::marker_press( Button & button )
|
|||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::marker_release( Button & button )
|
||||
LedState MackieControlProtocol::marker_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
|
@ -1690,29 +1690,29 @@ Mackie::LedState MackieControlProtocol::scrub_release( Mackie::Button & )
|
|||
;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::drop_press( Button & button )
|
||||
LedState MackieControlProtocol::drop_press (Button &)
|
||||
{
|
||||
session->remove_last_capture();
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::drop_release( Button & button )
|
||||
LedState MackieControlProtocol::drop_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::save_press( Button & button )
|
||||
LedState MackieControlProtocol::save_press (Button &)
|
||||
{
|
||||
session->save_state( "" );
|
||||
return on;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::save_release( Button & button )
|
||||
LedState MackieControlProtocol::save_release (Button &)
|
||||
{
|
||||
return off;
|
||||
}
|
||||
|
||||
LedState MackieControlProtocol::smpte_beats_press( Button & )
|
||||
LedState MackieControlProtocol::smpte_beats_press (Button &)
|
||||
{
|
||||
switch ( _timecode_type )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ void MackieControlProtocol::handle_port_inactive( SurfacePort * port )
|
|||
// TODO all the rebuilding of surfaces and so on
|
||||
}
|
||||
|
||||
void MackieControlProtocol::handle_port_active( SurfacePort * port )
|
||||
void MackieControlProtocol::handle_port_active (SurfacePort *)
|
||||
{
|
||||
// no need to re-add port because it was already added
|
||||
// during the init phase. So just update the local surface
|
||||
|
|
@ -213,7 +213,7 @@ void MackieControlProtocol::handle_port_active( SurfacePort * port )
|
|||
update_surface();
|
||||
}
|
||||
|
||||
void MackieControlProtocol::handle_port_init( Mackie::SurfacePort * sport )
|
||||
void MackieControlProtocol::handle_port_init (Mackie::SurfacePort *)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
cout << "MackieControlProtocol::handle_port_init" << endl;
|
||||
|
|
|
|||
|
|
@ -28,23 +28,23 @@ JogWheel::State JogWheel::jog_wheel_state() const
|
|||
return scroll;
|
||||
}
|
||||
|
||||
void JogWheel::zoom_event( SurfacePort & port, Control & control, const ControlState & state )
|
||||
void JogWheel::zoom_event (SurfacePort &, Control &, const ControlState &)
|
||||
{
|
||||
}
|
||||
|
||||
void JogWheel::scrub_event( SurfacePort & port, Control & control, const ControlState & state )
|
||||
void JogWheel::scrub_event (SurfacePort &, Control &, const ControlState &)
|
||||
{
|
||||
}
|
||||
|
||||
void JogWheel::speed_event( SurfacePort & port, Control & control, const ControlState & state )
|
||||
void JogWheel::speed_event (SurfacePort &, Control &, const ControlState &)
|
||||
{
|
||||
}
|
||||
|
||||
void JogWheel::scroll_event( SurfacePort & port, Control & control, const ControlState & state )
|
||||
void JogWheel::scroll_event (SurfacePort &, Control &, const ControlState &)
|
||||
{
|
||||
}
|
||||
|
||||
void JogWheel::jog_event( SurfacePort & port, Control & control, const ControlState & state )
|
||||
void JogWheel::jog_event (SurfacePort &, Control &, const ControlState & state)
|
||||
{
|
||||
// TODO use current snap-to setting?
|
||||
switch ( jog_wheel_state() )
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ MidiByteArray MackiePort::host_connection_confirmation( const MidiByteArray & by
|
|||
return MidiByteArray( 2, 0x13, 0x00 );
|
||||
}
|
||||
|
||||
void MackiePort::probe_emulation( const MidiByteArray & bytes )
|
||||
void MackiePort::probe_emulation (const MidiByteArray &)
|
||||
{
|
||||
#if 0
|
||||
cout << "MackiePort::probe_emulation: " << bytes.size() << ", " << bytes << endl;
|
||||
|
|
@ -330,7 +330,7 @@ bool MackiePort::wait_for_init()
|
|||
return SurfacePort::active();
|
||||
}
|
||||
|
||||
void MackiePort::handle_midi_sysex (MIDI::Parser & parser, MIDI::byte * raw_bytes, size_t count )
|
||||
void MackiePort::handle_midi_sysex (MIDI::Parser &, MIDI::byte * raw_bytes, size_t count )
|
||||
{
|
||||
MidiByteArray bytes( count, raw_bytes );
|
||||
#ifdef PORT_DEBUG
|
||||
|
|
@ -429,7 +429,7 @@ bool MackiePort::handle_control_timeout_event ( Control * control )
|
|||
// converts midi messages into control_event signals
|
||||
// it might be worth combining this with lookup_control
|
||||
// because they have similar logic flows.
|
||||
void MackiePort::handle_midi_any (MIDI::Parser & parser, MIDI::byte * raw_bytes, size_t count )
|
||||
void MackiePort::handle_midi_any (MIDI::Parser &, MIDI::byte * raw_bytes, size_t count )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
MidiByteArray bytes( count, raw_bytes );
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
public:
|
||||
/// display an indicator of the first switched-in Route. Do nothing by default.
|
||||
virtual void display_bank_start( SurfacePort &, MackieMidiBuilder &, uint32_t current_bank ) {};
|
||||
virtual void display_bank_start( SurfacePort &, MackieMidiBuilder &, uint32_t /*current_bank*/ ) {};
|
||||
|
||||
/// called from MackieControlPRotocol::zero_all to turn things off
|
||||
virtual void zero_all( SurfacePort &, MackieMidiBuilder & ) {};
|
||||
|
|
@ -96,7 +96,7 @@ public:
|
|||
virtual void blank_jog_ring( SurfacePort &, MackieMidiBuilder & ) {};
|
||||
|
||||
virtual bool has_timecode_display() const = 0;
|
||||
virtual void display_timecode( SurfacePort &, MackieMidiBuilder &, const std::string & timecode, const std::string & timecode_last ) {};
|
||||
virtual void display_timecode( SurfacePort &, MackieMidiBuilder &, const std::string & /*timecode*/, const std::string & /*timecode_last*/) {};
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue