X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Faudio_port.h;h=4f106c5593000328f8f34e2bb5c1e328da5972e5;hb=777fe3c68fef42d8fee79432830787bcebdfcb59;hp=ca5f183a1317174968b90a196c40b58f2a778bd5;hpb=8648a8a13b04549362f14a0738947d997ef1abc7;p=ardour.git diff --git a/libs/ardour/ardour/audio_port.h b/libs/ardour/ardour/audio_port.h index ca5f183a13..4f106c5593 100644 --- a/libs/ardour/ardour/audio_port.h +++ b/libs/ardour/ardour/audio_port.h @@ -21,6 +21,8 @@ #ifndef __ardour_audio_port_h__ #define __ardour_audio_port_h__ +#include "zita-resampler/vmresampler.h" + #include "ardour/port.h" #include "ardour/audio_buffer.h" @@ -28,7 +30,7 @@ namespace ARDOUR { class LIBARDOUR_API AudioPort : public Port { - public: +public: ~AudioPort (); DataType type () const { @@ -45,16 +47,18 @@ class LIBARDOUR_API AudioPort : public Port AudioBuffer& get_audio_buffer (pframes_t nframes); - protected: +protected: friend class PortManager; AudioPort (std::string const &, PortFlags); - /* special access for PortManager only (hah, C++) */ - Sample* engine_get_whole_audio_buffer (); + /* special access for PortManager only (hah, C++) */ + Sample* engine_get_whole_audio_buffer (); - private: - AudioBuffer* _buffer; - bool _buf_valid; +private: + AudioBuffer* _buffer; + ArdourZita::VMResampler _src; + Sample* _data; + bool _buf_valid; }; } // namespace ARDOUR