headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / midi2 / MidiConsumer.cpp
blob43ed6589df87df11ea0b67516dded27381f98c2e
1 /*
2 * Copyright 2006, Haiku.
3 *
4 * Copyright (c) 2002-2003 Matthijs Hollemans
5 * Distributed under the terms of the MIT License.
7 * Authors:
8 * Matthijs Hollemans
9 */
11 #include "debug.h"
12 #include <MidiConsumer.h>
13 #include "protocol.h"
16 bigtime_t
17 BMidiConsumer::Latency() const
19 bigtime_t res = 0LL;
21 if (LockLooper()) {
22 res = fLatency;
23 UnlockLooper();
26 return res;
30 BMidiConsumer::BMidiConsumer(const char* name)
31 : BMidiEndpoint(name)
33 fIsConsumer = true;
34 fLatency = 0LL;
35 fPort = 0;
39 BMidiConsumer::~BMidiConsumer()
41 // Do nothing.
45 void BMidiConsumer::_Reserved1() { }
46 void BMidiConsumer::_Reserved2() { }
47 void BMidiConsumer::_Reserved3() { }
48 void BMidiConsumer::_Reserved4() { }
49 void BMidiConsumer::_Reserved5() { }
50 void BMidiConsumer::_Reserved6() { }
51 void BMidiConsumer::_Reserved7() { }
52 void BMidiConsumer::_Reserved8() { }