X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Faudio_port.cc;h=a75f7d7a09163058b624bcaf6788763b687331ac;hb=f233c4738cf671a1957bb3729654b80a6f30cbbb;hp=c62d31a6d02d6da7860e554ffce669bd2be841c4;hpb=28368793415ba934132994d8c10a5e149c1a8d9d;p=ardour.git diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc index c62d31a6d0..a75f7d7a09 100644 --- a/libs/ardour/audio_port.cc +++ b/libs/ardour/audio_port.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2006 Paul Davis + Copyright (C) 2006 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,8 +44,8 @@ AudioPort::cycle_start (nframes_t nframes) /* get_buffer() must only be run on outputs here in cycle_start(). - Inputs must be done in the correct processing order, which - requires interleaving with route processing. that will + Inputs must be done in the correct processing order, which + requires interleaving with route processing. that will happen when Port::get_buffer() is called. */ @@ -89,11 +89,17 @@ AudioPort::get_audio_buffer (nframes_t nframes, nframes_t offset) */ _buffer->set_data ((Sample *) jack_port_get_buffer (_jack_port, nframes) + offset + _port_offset, nframes); - } - + } + /* output ports set their _buffer data information during ::cycle_start() */ return *_buffer; } +size_t +AudioPort::raw_buffer_size(nframes_t nframes) const +{ + return nframes * sizeof(float); +} +