Remove some namespace ambiguity
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 22 Sep 2018 07:48:41 +0000 (08:48 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 22 Sep 2018 07:48:41 +0000 (08:48 +0100)
There are a couple of places where we're using both MIDI namespace as well as ARDOUR namespace (both of which declare 'pframes_t)

libs/ardour/ltc_slave.cc
libs/ardour/midi_clock_slave.cc
libs/ardour/mtc_slave.cc

index b1b4f7173484ba2b235187332ad275f96eb59296..4f47b904bd48f7f71803fa573d3b32eb694c0533 100644 (file)
@@ -510,7 +510,7 @@ LTC_TransportMaster::speed_and_position (double& speed, samplepos_t& pos, sample
 }
 
 void
-LTC_TransportMaster::pre_process (pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
+LTC_TransportMaster::pre_process (ARDOUR::pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
 {
        Sample* in = (Sample*) AudioEngine::instance()->port_engine().get_buffer (_port->port_handle(), nframes);
        sampleoffset_t skip = now - (monotonic_cnt + nframes);
index 93ca9059ef8dbcd08e41f34dc1f1b9cc5f2ed9e5..04fa259519835de498bb299fec36698ab47f9460 100644 (file)
@@ -114,7 +114,7 @@ MIDIClock_TransportMaster::speed_and_position (double& speed, samplepos_t& pos,
 }
 
 void
-MIDIClock_TransportMaster::pre_process (pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
+MIDIClock_TransportMaster::pre_process (MIDI::pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
 {
        /* Read and parse incoming MIDI */
 
index 409fb9da6994bba8f89d0cf0ffa731f2c122e96a..a2b73ba2f4b7dcfacd6b14ebd1b9768fd67929cf 100644 (file)
@@ -130,7 +130,7 @@ MTC_TransportMaster::set_session (Session *s)
 }
 
 void
-MTC_TransportMaster::pre_process (pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
+MTC_TransportMaster::pre_process (MIDI::pframes_t nframes, samplepos_t now, boost::optional<samplepos_t> session_pos)
 {
        /* Read and parse incoming MIDI */