Skip to content

chore(import): mixer and ringbuf from sip - #19

Merged
anunaym14 merged 3 commits into
mainfrom
feat/mixer
Sep 17, 2025
Merged

chore(import): mixer and ringbuf from sip#19
anunaym14 merged 3 commits into
mainfrom
feat/mixer

Conversation

@anunaym14

Copy link
Copy Markdown
Member

No description provided.

@anunaym14
anunaym14 requested review from a team as code owners September 17, 2025 19:49
@anunaym14
anunaym14 requested review from a team and removed request for a team September 17, 2025 19:51
@@ -0,0 +1,152 @@
package ringbuf

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: do we want copyright notice for these?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added!

@anunaym14
anunaym14 merged commit 23ab14e into main Sep 17, 2025
2 checks passed
@anunaym14
anunaym14 deleted the feat/mixer branch September 17, 2025 20:30
Comment thread mixer/mixer.go
"github.com/frostbyte73/core"
msdk "github.com/livekit/media-sdk"

"github.com/livekit/media-sdk/internal/ringbuf"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move it from internal now, I think. We didn't want anyone using these packages by importing SIP, but here it would be appropriate.

Comment thread mixer/mixer.go
const (
// inputBufferFrames sets max number of frames that each mixer input will allow.
// Sending more frames to the input will cause old one to be dropped.
inputBufferFrames = 5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are reasonable values for SIP, but we probably want it configurable.

@kuba--

kuba-- commented Sep 18, 2025

Copy link
Copy Markdown

Just out of curiosity - why do we need another implementation of ring buffer, if we already have it either in go's std. library:
https://pkg.go.dev/container/ring@go1.25.1
or in backend-commons:
https://github.com/livekit/backend-common/blob/main/observability/publisher/ring.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants