MediaConnection: Remove latency range interface
* In preparation for the introduction of BMediaGraph.
This commit is contained in:
@@ -72,17 +72,6 @@ protected:
|
|||||||
virtual void Connected(const media_format& format);
|
virtual void Connected(const media_format& format);
|
||||||
virtual void Disconnected();
|
virtual void Disconnected();
|
||||||
|
|
||||||
// Specify a latency range to allow the connection behave correctly.
|
|
||||||
// Ideally the minimum latency should be the algorithmic latency you expect
|
|
||||||
// from the node and will be used as starting point. The max latency is the
|
|
||||||
// maximum acceptable by you, over that point the node will adjust it's
|
|
||||||
// performance time to recover if a big delay happen.
|
|
||||||
void SetLatencyRange(bigtime_t min,
|
|
||||||
bigtime_t max);
|
|
||||||
|
|
||||||
void GetLatencyRange(bigtime_t* min,
|
|
||||||
bigtime_t* max) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void _ConnectionRegistered(BMediaClient* owner,
|
void _ConnectionRegistered(BMediaClient* owner,
|
||||||
@@ -104,9 +93,6 @@ private:
|
|||||||
|
|
||||||
bool fConnected;
|
bool fConnected;
|
||||||
|
|
||||||
bigtime_t fMinLatency;
|
|
||||||
bigtime_t fMaxLatency;
|
|
||||||
|
|
||||||
virtual void _ReservedMediaConnection0();
|
virtual void _ReservedMediaConnection0();
|
||||||
virtual void _ReservedMediaConnection1();
|
virtual void _ReservedMediaConnection1();
|
||||||
virtual void _ReservedMediaConnection2();
|
virtual void _ReservedMediaConnection2();
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ BMediaClientNode::GetLatencyFor(const media_destination& dest,
|
|||||||
if (conn == NULL)
|
if (conn == NULL)
|
||||||
return B_MEDIA_BAD_DESTINATION;
|
return B_MEDIA_BAD_DESTINATION;
|
||||||
|
|
||||||
*latency = conn->fMaxLatency;
|
//*latency = conn->fLatency;
|
||||||
*timesource = TimeSource()->ID();
|
*timesource = TimeSource()->ID();
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,9 +14,7 @@ BMediaConnection::BMediaConnection(media_connection_kinds kinds)
|
|||||||
:
|
:
|
||||||
fOwner(NULL),
|
fOwner(NULL),
|
||||||
fBind(NULL),
|
fBind(NULL),
|
||||||
fBufferGroup(NULL),
|
fBufferGroup(NULL)
|
||||||
fMinLatency(0),
|
|
||||||
fMaxLatency(0)
|
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
|
|
||||||
@@ -155,26 +153,6 @@ BMediaConnection::Disconnected()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
BMediaConnection::GetLatencyRange(bigtime_t* min, bigtime_t* max) const
|
|
||||||
{
|
|
||||||
CALLED();
|
|
||||||
|
|
||||||
*min = fMinLatency;
|
|
||||||
*max = fMaxLatency;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
BMediaConnection::SetLatencyRange(bigtime_t min, bigtime_t max)
|
|
||||||
{
|
|
||||||
CALLED();
|
|
||||||
|
|
||||||
fMinLatency = min;
|
|
||||||
fMaxLatency = max;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BMediaConnection::_ConnectionRegistered(BMediaClient* owner,
|
BMediaConnection::_ConnectionRegistered(BMediaClient* owner,
|
||||||
media_connection_id id)
|
media_connection_id id)
|
||||||
|
|||||||
Reference in New Issue
Block a user