summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/dummy_port.cc
blob: 7654f8f9874f551a720f639c70427b76c9f5f16c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "dummy_port.h"

#include "midi_byte_array.h"

#include <midi++/port.h>
#include <midi++/types.h>

#include <iostream>

using namespace Mackie;
using namespace std;

DummyPort::DummyPort()
{
}

DummyPort::~DummyPort()
{
}

	
void DummyPort::open()
{
	cout << "DummyPort::open" << endl;
}

	
void DummyPort::close()
{
	cout << "DummyPort::close" << endl;
}


MidiByteArray DummyPort::read()
{
	cout << "DummyPort::read" << endl;
	return MidiByteArray();
}

	
void DummyPort::write( const MidiByteArray & mba )
{
	cout << "DummyPort::write " << mba << endl;
}

MidiByteArray empty_midi_byte_array;

const MidiByteArray & DummyPort::sysex_hdr() const
{
	cout << "DummyPort::sysex_hdr" << endl;
	return empty_midi_byte_array;
}

int DummyPort::strips() const
{
	cout << "DummyPort::strips" << endl;
	return 0;
}