Repository navigation
Conversation
…, as hardware and every other "virtual" device as software
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
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 changed and why
Nobody chose a microphone, and the system default is a headset whose USB dongle says "virtual": a HyperX Cloud II ("HyperX Virtual Surround Sound"), or an adapter Linux names "Virtual 7.1 Ch Sound". The device choice took "virtual" for software and moved the call to the onboard sound or a webcam (#1017).
mainexempts "virtual surround" alone. Now the three phrases a real device says are exempt:virtual surround,virtual 7.1,virtual 5.1. "Virtual" with any other word stays software, because a call must never land on software by itself.So that a scenario can show it, mediad takes a stand-in for the device list:
TINYCLIENT_MEDIAD_DEVICESnames a file that lists them. It replaces the list only. A call's streams are as before.Type
Platforms
Proof
Scenario: e2e/scenarios/auto-device-virtual-name
The scenario starts the real mediad over the chat pipe with the stand-in list (the adapter as the default, a webcam, a VB-Audio cable) and reads the device list at start and when the device menu opens. It passes when the adapter is hardware and the only automatic choice, and the cable is software. A build from before the change does not read the stand-in, so its list never names the headset and six of twelve steps fail there.
Lab run: not made. The driver ran only against a stand-in for mediad's frames, never against the real mediad on a lab host.
Not shown: the adapter's name rests on one public report, and no other real device besides the HyperX was found. cpal 0.18 reports no desktop device as virtual, so only the name can tell them apart.
Also run on this branch on Windows before this pull request:
cargo build --workspace --all-targets --features tinyclient/gui, thencargo nextest run --workspace --features tinyclient/gui(3682 passed, 28 skipped; new among them two tests inpick.rs, two inaudio.rsand one program test intests/voice.rs), thencargo test --workspace --doc --features tinyclient/gui.Compatibility
No protocol change. The stand-in is read only when the variable is set; the tests' harness clears it.
Risk and rollback
A software device that says "virtual 7.1" or "virtual 5.1" would now be taken for hardware. None is known. Revert the commit.
Release note
A headset whose name says "Virtual Surround" or "Virtual 7.1" is used for calls when nobody chose a device.
Part of #1017.