Skip to content

Commit

Permalink
Add support for packets with floating ptime & refactor #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kjs001127 authored Apr 24, 2023
2 parents e0161b9 + dd6012a commit c20b0be
Show file tree
Hide file tree
Showing 7 changed files with 365 additions and 277 deletions.
17 changes: 17 additions & 0 deletions pkg/jitter/api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package jitter

type Packet struct {
Data []byte
SampleCnt int64
Timestamp int64
SSRC uint32
}

type Buffer interface {
Put(p *Packet)
Get() ([]*Packet, bool)
}

type BufferFactory interface {
CreateBuffer() Buffer
}
152 changes: 0 additions & 152 deletions pkg/jitter/buffer.go

This file was deleted.

100 changes: 0 additions & 100 deletions pkg/jitter/buffer_test.go

This file was deleted.

Loading

0 comments on commit c20b0be

Please sign in to comment.