-
Notifications
You must be signed in to change notification settings - Fork 15
chore: nearby voice chat | audio stream deduplication #8817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
popuz
wants to merge
24
commits into
dev
Choose a base branch
from
chore/nearby-voice-chat/audio-stream-deduplication
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
05841d7
added registry change
popuz db8c788
collapse StreamerComponent + flip Bridge & Cleanup onto resolver
popuz 00334bf
removed one-to-many ecs approach
popuz 1b36f3e
refactor(NearbyVoiceChat ECS): split runtime queries by archetype filter
popuz 5d4b60c
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 9bf172e
refactor(NearbyVoiceChat): drop bindings HashSet — component is the d…
popuz 1ef96c4
Merge remote-tracking branch 'origin/chore/nearby-voice-chat/audio-st…
popuz 5d24072
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 2a3308a
refactor(NearbyVoiceChat): inline bulk remove into cleanup query, pas…
popuz f149b6e
Merge remote-tracking branch 'origin/chore/nearby-voice-chat/audio-st…
popuz 48e130b
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz d5fd015
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 89d78ea
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 88d353b
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 26ab3c3
tests clean-up and docs update
popuz 44d61b6
2 more comments
popuz add84de
pointed to merged livekit and updated to new interface
popuz 03bc7dd
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 9e47387
updated comment
popuz ac735af
Merge remote-tracking branch 'origin/chore/nearby-voice-chat/audio-st…
popuz e851ed2
Merge branch 'dev' into chore/nearby-voice-chat/audio-stream-deduplic…
popuz 2daefb1
changed ref to in
popuz 8cadb60
Merge remote-tracking branch 'origin/chore/nearby-voice-chat/audio-st…
popuz d34bec9
rolled back LogAudioStreams
popuz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
8 changes: 1 addition & 7 deletions
8
Explorer/Assets/DCL/VoiceChat/NearbyVoiceChat/Components/NearbyAudioSourceComponent.cs
This file contains hidden or 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
20 changes: 9 additions & 11 deletions
20
Explorer/Assets/DCL/VoiceChat/NearbyVoiceChat/Components/NearbyAudioStreamerComponent.cs
This file contains hidden or 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,27 +1,25 @@ | ||
| using DCL.VoiceChat.Nearby.Audio; | ||
|
|
||
| namespace DCL.VoiceChat.Nearby | ||
| { | ||
| /// <summary> | ||
| /// Per-avatar mirror of the registry's audio sids for the avatar's walletId. | ||
| /// Per-avatar mirror of the registry's single active audio sid for the avatar's walletId. | ||
| /// <para> | ||
| /// <see cref="StreamSidsSnapshot"/> is a reference to a registry-owned copy-on-write <c>string[]</c>. | ||
| /// Reference identity is the version signal: a different reference ↔ content changed. | ||
| /// <b>Never mutate.</b> | ||
| /// Never retain across frames longer than the COW guarantees in <see cref="NearbyAudioStreamsRegistry"/>. | ||
| /// <see cref="CurrentSid"/> is the resolver's pick (most-recent-frame winner). Never <c>null</c> | ||
| /// while the component is attached — <see cref="NearbyLivekitBridgeSystem"/> guarantees the invariant | ||
| /// by only attaching on a non-null resolver result and ref-mutating on flips. | ||
| /// </para> | ||
| /// <para> | ||
| /// Remote-only: the local participant (user) is never present in the registry's streaming snapshot. | ||
| /// LiveKit does not raise <c>TrackSubscribed</c> for locally-published tracks, so this component is never attached to the local player avatar. | ||
| /// LiveKit does not raise <c>TrackSubscribed</c> for locally-published tracks, so this component is never | ||
| /// attached to the local player avatar. | ||
| /// </para> | ||
| /// </summary> | ||
| public struct NearbyAudioStreamerComponent | ||
| { | ||
| public string[] StreamSidsSnapshot; | ||
| public string CurrentSid; | ||
|
|
||
| public NearbyAudioStreamerComponent(string[] streamSidsSnapshot) | ||
| public NearbyAudioStreamerComponent(string currentSid) | ||
| { | ||
| StreamSidsSnapshot = streamSidsSnapshot; | ||
| CurrentSid = currentSid; | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.