-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove adaptive temporarily & Fix listener interafce #8
- Loading branch information
Showing
2 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
package jitter | ||
|
||
type Listener interface { | ||
OnPacketLoss(targetTs, remainingTs int64) | ||
OnPacketEnqueue(targetTs, remainingTs int64, pkt *Packet) | ||
OnPacketDequeue(targetTs, remainingTs int64, pkt []*Packet) | ||
OnLatencyChanged(new int64) | ||
OnPacketLoss(currentTs, targetTs, remainingTs int64) | ||
OnPacketEnqueue(currentTs, targetTs, remainingTs int64, pkt *Packet) | ||
OnPacketDequeue(currentTs, targetTs, remainingTs int64, pkt []*Packet) | ||
OnReSyncTriggered(oldCurrent int64, newCurrent int64) | ||
} | ||
|
||
type NullListener struct { | ||
} | ||
|
||
func (n NullListener) OnPacketLoss(currentTs, remainingTs int64) { | ||
func (n NullListener) OnPacketLoss(currentTs, targetTs, remainingTs int64) { | ||
} | ||
|
||
func (n NullListener) OnLatencyChanged(new int64) { | ||
func (n NullListener) OnPacketEnqueue(currentTs, targetTs, remainingTs int64, pkt *Packet) { | ||
} | ||
|
||
func (n NullListener) OnPacketEnqueue(currentTs, remainingTs int64, pkt *Packet) { | ||
} | ||
|
||
func (n NullListener) OnPacketDequeue(currentTs, remainingTs int64, pkt []*Packet) { | ||
func (n NullListener) OnPacketDequeue(currentTs, targetTs, remainingTs int64, pkt []*Packet) { | ||
} | ||
|
||
func (n NullListener) OnReSyncTriggered(oldCurrent int64, newCurrent int64) { | ||
|
||
} |