Skip to content
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

fix(blink): allow arbitrary audio channels #326

Merged
merged 29 commits into from
Sep 18, 2023
Merged

fix(blink): allow arbitrary audio channels #326

merged 29 commits into from
Sep 18, 2023

Conversation

sdwoodbury
Copy link
Contributor

What this PR does 📖
This PR improves the way audio channels are handled. Now for webrtc communication, only one audio channel is used. Blink now allows microphones and speakers with arbitrary number of channels.

Audio hardware is represented using a new struct instead of an AudioCodec, because a speaker/microphone doesn't care about the MIME type - it only deals in raw samples.

The AudioCodec struct no longer has a field for channels because for webrtc communication, only one channel is used.

This PR also changes the way audio hardware is tested. Blink no longer performs that task, but instead returns a new struct: AudioDeviceConfig, which lets the user view, select, and test speaker/microphone combinations. The user can then pass that struct back to blink to apply said configuration.

There was one change to RayGun because I was getting a compiler error. I believe it has no effect on behavior.

Which issue(s) this PR fixes 🔨

Special notes for reviewers 🗒️

Additional comments 🎤

…ardware.

audio hardware doesn't care about the codec.
the user doesn't care about the mime type and sample rate
@sdwoodbury sdwoodbury self-assigned this Sep 15, 2023
@sdwoodbury sdwoodbury marked this pull request as draft September 15, 2023 15:24
@sdwoodbury sdwoodbury marked this pull request as ready for review September 15, 2023 18:16
extensions/warp-blink-wrtc/src/lib.rs Outdated Show resolved Hide resolved
@sdwoodbury sdwoodbury merged commit 872a24e into main Sep 18, 2023
1 check passed
@sdwoodbury sdwoodbury deleted the fix/blink-init2 branch September 18, 2023 14:04
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.

2 participants