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

Stereo channels end up reversed on Debian Sid #10

Closed
Djhg2000 opened this issue May 31, 2018 · 2 comments
Closed

Stereo channels end up reversed on Debian Sid #10

Djhg2000 opened this issue May 31, 2018 · 2 comments

Comments

@Djhg2000
Copy link

Not sure if this is distro/version specific but somehow sounds from Windows get the channels reversed, meanwhile sounds played within Debian are mapped correctly.

It's not clear to me where in the chain the channels get reversed, is there any known way to play the network stream with mpv or vlc for debugging?

@Djhg2000
Copy link
Author

Djhg2000 commented Jun 1, 2018

As if by magic the channel order fixed itself after submitting this issue. I will need to do further testing to come up with a reproducible test case.

@duncanthrax
Copy link
Owner

There might be a 50% chance of that happening if you launch the receiver into a running stream. The transmitted data is the raw PCM dump coming out of the Windows software audio subsystem. The receiver might start reading the stream at a packet that begins with an "R" frame. The channel order should correct itself when the source (Windows) has no clients playing, and the receiver runs empty on its PA buffer.

I'll do some research to see if it's possible to tweak the packet size so it's guaranteed to start with an "L" frame.

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

No branches or pull requests

2 participants