Now it compiles again
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
* @author Jerome Leveque
|
* @author Jerome Leveque
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <MidiRoster.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "MidiEndpoint.h"
|
#include "MidiEndpoint.h"
|
||||||
|
|
||||||
|
|||||||
@@ -13,39 +13,52 @@
|
|||||||
|
|
||||||
status_t BMidiProducer::Connect(BMidiConsumer* toObject)
|
status_t BMidiProducer::Connect(BMidiConsumer* toObject)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
if (toObject != NULL)
|
if (toObject != NULL)
|
||||||
|
{
|
||||||
if (fConnections->Add(toObject) == true)
|
if (fConnections->Add(toObject) == true)
|
||||||
|
{
|
||||||
fConnectionCount++;
|
fConnectionCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
BMidiRoster *roster = BMidiRoster::MidiRoster();
|
BMidiRoster *roster = BMidiRoster::MidiRoster();
|
||||||
return roster->Connect(this, toObject);
|
return roster->Connect(this, toObject);
|
||||||
|
*/
|
||||||
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
status_t BMidiProducer::Disconnect(BMidiConsumer* toObject)
|
status_t BMidiProducer::Disconnect(BMidiConsumer* toObject)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
if (toObject != NULL)
|
if (toObject != NULL)
|
||||||
|
{
|
||||||
if (fConnections->Remove(toObject) == true)
|
if (fConnections->Remove(toObject) == true)
|
||||||
{
|
{
|
||||||
fConnectionCount--;
|
fConnectionCount--;
|
||||||
BMidiRoster *roster = BMidiRoster::MidiRoster();
|
BMidiRoster *roster = BMidiRoster::MidiRoster();
|
||||||
return roster->Disconnect(this, toObject);
|
return roster->Disconnect(this, toObject);
|
||||||
}
|
}
|
||||||
return B_ERROR;
|
}
|
||||||
|
*/
|
||||||
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
bool BMidiProducer::IsConnected(BMidiConsumer* toObject) const
|
bool BMidiProducer::IsConnected(BMidiConsumer* toObject) const
|
||||||
{
|
{
|
||||||
return fConnections->IsIn(toObject);
|
// return fConnections->IsIn(toObject);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
BList* BMidiProducer::Connections() const
|
BList* BMidiProducer::Connections() const
|
||||||
{
|
{
|
||||||
return fConnections;
|
// return fConnections;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -53,9 +66,11 @@ return fConnections;
|
|||||||
BMidiProducer::BMidiProducer(const char* name)
|
BMidiProducer::BMidiProducer(const char* name)
|
||||||
: BMidiEndpoint(name)
|
: BMidiEndpoint(name)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
fConnections = new BMidiList();
|
fConnections = new BMidiList();
|
||||||
fConnectionCount = 1;
|
fConnectionCount = 1;
|
||||||
fLock = BLocker("BMidiProducer Lock");
|
fLock = BLocker("BMidiProducer Lock");
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user