1 /* 2 * Copyright 2006, Haiku. 3 * 4 * Copyright (c) 2002-2003 Matthijs Hollemans 5 * Distributed under the terms of the MIT License. 6 * 7 * Authors: 8 * Matthijs Hollemans 9 */ 10 11 #include "debug.h" 12 #include <MidiConsumer.h> 13 #include "protocol.h" 14 15 16 bigtime_t Latency() const17BMidiConsumer::Latency() const 18 { 19 bigtime_t res = 0LL; 20 21 if (LockLooper()) { 22 res = fLatency; 23 UnlockLooper(); 24 } 25 26 return res; 27 } 28 29 BMidiConsumer(const char * name)30BMidiConsumer::BMidiConsumer(const char* name) 31 : BMidiEndpoint(name) 32 { 33 fIsConsumer = true; 34 fLatency = 0LL; 35 fPort = 0; 36 } 37 38 ~BMidiConsumer()39BMidiConsumer::~BMidiConsumer() 40 { 41 // Do nothing. 42 } 43 44 _Reserved1()45void BMidiConsumer::_Reserved1() { } _Reserved2()46void BMidiConsumer::_Reserved2() { } _Reserved3()47void BMidiConsumer::_Reserved3() { } _Reserved4()48void BMidiConsumer::_Reserved4() { } _Reserved5()49void BMidiConsumer::_Reserved5() { } _Reserved6()50void BMidiConsumer::_Reserved6() { } _Reserved7()51void BMidiConsumer::_Reserved7() { } _Reserved8()52void BMidiConsumer::_Reserved8() { } 53 54