-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make mono to stereo conversion automatic (fixes fmradio) #455
Conversation
If you'd rather just use the auto mono->stereo conversion that the With the following setup we'll get: [1/2]->plug->[2]->route->[8]->dmix
|
Oddly this does not work with vlc on ch1 and ch3. Works fine for ch2. |
With the extra layer in play here is what the verbose output -vvv looks like from vlc:
Without the extra layer:
|
Not so odd I guess, ch2 uses physical channels 0 and 1 on the 8-channel CM6206, so no remapping is required. What is weird is that the FM radio stream (mono) and Spotify (stereo) both worked so I assumed the rest of the stereo streams would work... My AmpliPi has been borrowed so I can't test, but I assume when you try ch3 you get:
|
Those messages come from https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_dmix.c and https://github.com/alsa-project/alsa-lib/blob/master/src/pcm/pcm_route.c and look exactly like what I'd expect. I think if there's an error it might lie elsewhere... |
Another way to do this would be with 2 layers of plug:
|
2 layers of plug works and was tested with Pandora, Airplay, Spotify, Internet Radio, and FM Radio |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #455 +/- ##
===========================================
+ Coverage 56.25% 64.34% +8.09%
===========================================
Files 12 15 +3
Lines 2839 4171 +1332
===========================================
+ Hits 1597 2684 +1087
- Misses 1242 1487 +245
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this setup makes the most sense going forward since it handles any weird cases where mono audio will get played. We will need to continue testing this to make sure there aren't any performance penalties with the double plug setup.
This allows us to use ALSA automatic mono -> stereo conversions.
This works and was tested with Pandora, Airplay, Spotify, Internet Radio, and FM Radio.
@Lohrer Do you think this makes sense? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I just think there's a some comments that might need to reflect the latest changes.
Closes #454.
To test a nearby radio station is 91.7, verify that stereo audio is output on each source.