-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(blink): refactor blink and improve call quality #376
Merged
Conversation
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
dariusc93
approved these changes
Dec 1, 2023
use Mutex instead of RwLock in host_media controller. use futures::future::ready instead of async({}) in simple_webrtc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does 📖
eliminates the problem where audio cuts out by doing the following
HeapRb
used to pass data to/from CPALcreated a submodule to aid in testing
blink-repl
can usewarp-blink-wrtc
with theloopback
feature to make it send any received audio back to all connected peers. This program can be run on a cloud device, allowing one person to test a call between two separate locations.refactored warp-blink-wrtc
host_media
module. This was the next logical step after a previous PR improved IPFS signaling. The abstraction over the codec type was removed because it seems that we will always just use opus. The audio sink was split into a decoder task and a receiver task. The audio source was split into an encoder task and a sender task. Opus encoding/decoding is done on dedicated threads. The decoder task decodes in parallel using rayon.misc fixes
AudioDeviceConfig
trait to use aoneshot::channel
to signal whentest_speaker
andtest_microphone
are done.Cpal
streams can't be sent safely between threads so these functions, which create said streams, can't use async.test_speaker
where the sound continues to play after the test if the program doesn't drop theAudioDeviceConfigImpl
struct.Which issue(s) this PR fixes 🔨
Special notes for reviewers 🗒️
Additional comments 🎤
The stuff about datachannels isn't used yet and was left in for later. Eventually i'd like to use them to determine round trip time between peers, for detecting poor network conditions. That's what I was thinking of doing when I set out on this refactor.