* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef __libbackend_coremidi_io_h__
+#define __libbackend_coremidi_io_h__
+
#include <CoreServices/CoreServices.h>
#include <CoreAudio/CoreAudio.h>
#include <AudioUnit/AudioUnit.h>
#include <boost/shared_ptr.hpp>
#include "pbd/ringbuffer.h"
-typedef struct _CoreMIDIPacket {
- MIDITimeStamp timeStamp;
- UInt16 length;
- Byte data[256];
+namespace ARDOUR {
+
+typedef struct _CoreMIDIPacket {
+ MIDITimeStamp timeStamp;
+ UInt16 length;
+ Byte data[256];
#if 0 // unused
_CoreMIDIPacket (MIDITimeStamp t, Byte *d, UInt16 l)
: timeStamp(t)
}
}
#endif
- _CoreMIDIPacket (const MIDIPacket *other)
+ _CoreMIDIPacket (const MIDIPacket *other)
: timeStamp(other->timeStamp)
, length (other->length)
{
void start_cycle ();
int send_event (uint32_t, double, const uint8_t *, const size_t);
+ int send_events (uint32_t, double, const void *);
size_t recv_event (uint32_t, double, uint64_t &, uint8_t *, size_t &);
uint32_t n_midi_inputs (void) const { return _n_midi_in; }
pthread_mutex_t _discovery_lock;
};
+
+} // namespace
+
+#endif /* __libbackend_coremidi_io */