projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix SConstruct so that it can build from a git checkout rather than an svn checkout
[ardour.git]
/
libs
/
ardour
/
ardour
/
midi_port.h
diff --git
a/libs/ardour/ardour/midi_port.h
b/libs/ardour/ardour/midi_port.h
index 0787f66494e479bd3371152333049de36f0ac3cc..485834aaffb0d7d7dc0c6ab47af88e72e1174e41 100644
(file)
--- a/
libs/ardour/ardour/midi_port.h
+++ b/
libs/ardour/ardour/midi_port.h
@@
-21,39
+21,25
@@
#ifndef __ardour_midi_port_h__
#define __ardour_midi_port_h__
#ifndef __ardour_midi_port_h__
#define __ardour_midi_port_h__
-#include <sigc++/signal.h>
-#include <pbd/failed_constructor.h>
-#include <ardour/ardour.h>
-#include <ardour/port.h>
-#include <ardour/midi_buffer.h>
+#include <ardour/base_midi_port.h>
namespace ARDOUR {
class MidiEngine;
namespace ARDOUR {
class MidiEngine;
-class MidiPort : public
virtual Port
{
+class MidiPort : public
BaseMidiPort, public PortFacade
{
public:
public:
- virtual ~MidiPort();
-
- Buffer& get_buffer() {
- return _buffer;
- }
-
- MidiBuffer& get_midi_buffer() {
- return _buffer;
- }
-
- size_t capacity() { return _buffer.capacity(); }
- size_t size() { return _buffer.size(); }
+ ~MidiPort();
+
+ void reset ();
+
+ void cycle_start (nframes_t nframes, nframes_t offset);
+ void cycle_end (nframes_t nframes, nframes_t offset);
protected:
friend class AudioEngine;
protected:
friend class AudioEngine;
- MidiPort (Flags, nframes_t bufsize);
-
- /* engine isn't supposed to access below here */
-
- MidiBuffer _buffer;
+ MidiPort (const std::string& name, Flags, bool external, nframes_t bufsize);
};
} // namespace ARDOUR
};
} // namespace ARDOUR