-using namespace ARDOUR;
-using namespace std;
-
-AudioPort::AudioPort (const std::string& name, Flags flags, bool external, nframes_t capacity)
- : Port (name, flags)
- , BaseAudioPort (name, flags)
- , PortFacade (name, flags)
-{
- if (!external || receives_input()) {
-
- /* internal-only and input ports need their own buffers.
- external output ports use the external port buffer.
- */
-
- _buffer = new AudioBuffer (capacity);
- _own_buffer = true;
- }
-
- if (!external) {
-
- _ext_port = 0;
- set_name (name);
-
- } else {
-
- /* make the JackAudioPort create its own buffer. For input,
- we will copy from it during cycle_start(). For output,
- we will set up our buffer to point to its buffer, which
- will in turn be using the JACK port buffer for data.
- */