namespace ARDOUR {
-class AudioPort : public Port
+class LIBARDOUR_API AudioPort : public Port
{
public:
~AudioPort ();
void cycle_end (pframes_t);
void cycle_split ();
- size_t raw_buffer_size (pframes_t nframes) const;
-
- Buffer& get_buffer (framecnt_t nframes) {
+ Buffer& get_buffer (pframes_t nframes) {
return get_audio_buffer (nframes);
}
- AudioBuffer& get_audio_buffer (framecnt_t nframes);
+ AudioBuffer& get_audio_buffer (pframes_t nframes);
protected:
- friend class AudioEngine;
+ friend class PortManager;
+ AudioPort (std::string const &, PortFlags);
- AudioPort (std::string const &, Flags);
+ /* special access for PortManager only (hah, C++) */
+ Sample* engine_get_whole_audio_buffer ();
private:
AudioBuffer* _buffer;
+ bool _buf_valid;
};
} // namespace ARDOUR