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

Surround audio support #2026

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Surround audio support #2026

merged 2 commits into from
Mar 15, 2024

Conversation

barnabwhy
Copy link
Contributor

@barnabwhy barnabwhy commented Mar 10, 2024

Adds support for downmixing from 4, 6 and 8 channel audio to both stereo and mono.

Important note: This doesn't make Razer's THX Spatial Audio work (their audio device just returns all 0s for the audio samples).

Tested using VB Audio virtual devices.

This is unlikely to have any effect on audio quality (as most apps/games just use stereo anyway), but it will mean people with surround audio configurations won't end up with no audio on the headset side (unless they have a broken virtual surround setup like was mentioned above).

@barnabwhy barnabwhy marked this pull request as ready for review March 10, 2024 19:14
@galister
Copy link
Collaborator

might as well add 2.1? some soundbars & simpler speaker kits use that. just FL+FR+SW

@barnabwhy
Copy link
Contributor Author

might as well add 2.1? some soundbars & simpler speaker kits use that. just FL+FR+SW

I suppose, apparently we're meant to just mute the sub when downmixing so i suppose that's fine

@barnabwhy
Copy link
Contributor Author

So i know there's also 4.1 (5ch) and 6.1 (7ch) but I can't find any particularly useful/trustworthy resources on how to downmix those correctly, so unless someone can give info on them I'll leave them out (they're not utilised very much, people tend to only use even numbers of channels)

Copy link
Member

@zmerp zmerp left a comment

Choose a reason for hiding this comment

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

LGTM!

@zmerp zmerp requested a review from Vixea March 12, 2024 07:40
@Vixea
Copy link
Collaborator

Vixea commented Mar 12, 2024

I'll review this tomorrow I have a headset with virtual surround sound to test with

@Vixea
Copy link
Collaborator

Vixea commented Mar 14, 2024

Anyway that was a lie

@zmerp zmerp merged commit 6caeed8 into alvr-org:master Mar 15, 2024
6 checks passed
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