remove another naming that refers to JACK
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 9 Aug 2013 17:27:05 +0000 (13:27 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 9 Aug 2013 17:27:05 +0000 (13:27 -0400)
libs/ardour/ardour/buffer_set.h
libs/ardour/buffer_set.cc
libs/ardour/bundle.cc
libs/ardour/delivery.cc
libs/ardour/io.cc

index 12e9dbc63b0a99ddfcfad0c0961e3bf59fc08b33..26d47682af6e69a511e6277445948c8f24e18147 100644 (file)
@@ -70,7 +70,7 @@ public:
        void clear();
 
        void attach_buffers (PortSet& ports);
-       void get_jack_port_addresses (PortSet &, framecnt_t);
+       void get_backend_port_addresses (PortSet &, framecnt_t);
 
        /* the capacity here is a size_t and has a different interpretation depending
           on the DataType of the buffers. for audio, its a frame count. for MIDI
index 184e23d1afff57016e72ff0a0472c867ebbb863a..01a1f63c5db910c525487a7e4027efeefa0b9204 100644 (file)
@@ -114,13 +114,13 @@ BufferSet::attach_buffers (PortSet& ports)
        _is_mirror = true;
 }
 
-/** Write the JACK port addresses from a PortSet into our data structures.  This
+/** Write the backend port addresses from a PortSet into our data structures.  This
  *  call assumes that attach_buffers() has already been called for the same PortSet.
  *  Does not allocate, so RT-safe BUT you can only call Port::get_buffer() from
  *  the process() callback tree anyway, so this has to be called in RT context.
  */
 void
-BufferSet::get_jack_port_addresses (PortSet& ports, framecnt_t nframes)
+BufferSet::get_backend_port_addresses (PortSet& ports, framecnt_t nframes)
 {
        assert (_count == ports.count ());
        assert (_available == ports.count ());
index be4b04e36a4966b69691256cb4b32394ff2fa876..834a98d347d4d2a1d3deaebc655f816dec6fee6c 100644 (file)
@@ -443,8 +443,8 @@ Bundle::connected_to (boost::shared_ptr<Bundle> other, AudioEngine & engine)
        return true;
 }
 
-/** This must not be called in code executed as a response to a JACK event,
- *  as it uses jack_port_get_all_connections().
+/** This must not be called in code executed as a response to a backend event,
+ *  as it uses the backend port_get_all_connections().
  *  @return true if any of this bundle's channels are connected to anything.
  */
 bool
index dfbe4c960adcad6151038804b85919b1bdf6166a..79c44ce94a0efa8bd6d9e7b80ea62fe33c9f9212 100644 (file)
@@ -245,7 +245,7 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf
           processing pathway that wants to use this->output_buffers() for some reason.
        */
 
-       output_buffers().get_jack_port_addresses (ports, nframes);
+       output_buffers().get_backend_port_addresses (ports, nframes);
 
        // this Delivery processor is not a derived type, and thus we assume
        // we really can modify the buffers passed in (it is almost certainly
index c517defe1a0f8441cba69e260b279b8de4ef0126..6f5b5a63dae90167970fda91ef78b6e51a72ea5f 100644 (file)
@@ -1404,10 +1404,11 @@ IO::find_port_hole (const char* base)
         */
 
        for (n = 1; n < 9999; ++n) {
-               char buf[jack_port_name_size()];
+               size_t size = AudioEngine::instance()->port_name_size() + 1;
+               char buf[size];
                PortSet::iterator i = _ports.begin();
 
-               snprintf (buf, jack_port_name_size(), _("%s %u"), base, n);
+               snprintf (buf, size, _("%s %u"), base, n);
 
                for ( ; i != _ports.end(); ++i) {
                        if (i->name() == buf) {
@@ -1638,7 +1639,7 @@ IO::process_input (boost::shared_ptr<Processor> proc, framepos_t start_frame, fr
                return;
        }
 
-       _buffers.get_jack_port_addresses (_ports, nframes);
+       _buffers.get_backend_port_addresses (_ports, nframes);
        if (proc) {
                proc->run (_buffers, start_frame, end_frame, nframes, true);
        }