2002-11-01 16:01:08 +00:00
|
|
|
/**
|
|
|
|
* @file MidiLocalConsumer.cpp
|
|
|
|
*
|
|
|
|
* @author Matthijs Hollemans
|
2002-11-05 09:17:50 +00:00
|
|
|
* @author Jerome Leveque
|
2002-11-01 16:01:08 +00:00
|
|
|
*/
|
2002-10-31 08:53:41 +00:00
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
#include "MidiConsumer.h"
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
BMidiLocalConsumer::BMidiLocalConsumer(const char* name)
|
2002-11-05 09:17:50 +00:00
|
|
|
: BMidiConsumer(name)
|
2002-10-31 08:53:41 +00:00
|
|
|
{
|
2002-11-05 09:17:50 +00:00
|
|
|
fFlags |= 0x10;
|
2002-10-31 08:53:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
BMidiLocalConsumer::~BMidiLocalConsumer()
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::SetLatency(bigtime_t latency)
|
|
|
|
{
|
2002-11-05 09:17:50 +00:00
|
|
|
fLatency = latency;
|
2002-10-31 08:53:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
int32 BMidiLocalConsumer::GetProducerID(void)
|
|
|
|
{
|
2002-11-05 09:17:50 +00:00
|
|
|
return fCurrentProducer;
|
2002-10-31 08:53:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::SetTimeout(bigtime_t when, void* data)
|
|
|
|
{
|
2002-11-05 09:17:50 +00:00
|
|
|
fTimeout = when;
|
|
|
|
fTimeoutData = data;
|
2002-10-31 08:53:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::Timeout(void* data)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::Data(
|
|
|
|
uchar* data, size_t length, bool atomic, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::NoteOff(
|
|
|
|
uchar channel, uchar note, uchar velocity, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::NoteOn(
|
|
|
|
uchar channel, uchar note, uchar velocity, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::KeyPressure(
|
|
|
|
uchar channel, uchar note, uchar pressure, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::ControlChange(
|
|
|
|
uchar channel, uchar controlNumber, uchar controlValue, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::ProgramChange(
|
|
|
|
uchar channel, uchar programNumber, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::ChannelPressure(
|
|
|
|
uchar channel, uchar pressure, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::PitchBend(
|
|
|
|
uchar channel, uchar lsb, uchar msb, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::SystemExclusive(
|
|
|
|
void* data, size_t dataLength, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::SystemCommon(
|
|
|
|
uchar statusByte, uchar data1, uchar data2, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::SystemRealTime(uchar statusByte, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::TempoChange(int32 bpm, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::AllNotesOff(bool justChannel, bigtime_t time)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void BMidiLocalConsumer::_Reserved1() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved2() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved3() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved4() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved5() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved6() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved7() { }
|
|
|
|
void BMidiLocalConsumer::_Reserved8() { }
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|