Log in

View Full Version : Automatically detect number of available audio channels


zlorf
19th August 2018, 20:43
Hi,

I'm using mpc hc + lav splitter and ffdshow or lav audio decoder (I can easily switch them).

PC has two audio outputs:
1) stereo speakers for daily activities;
2) yamaha receiver + beam projector for home cinema (5.1) via hdmi cable
I can switch audio output using built-in Windows 7 audio dialog (changing default playback device)

The problem I'm facing is that player/LAV doesn't detect currently selected playback device and number of available channels. So that when I'm playing some 5.1 content on stereo speakers, the center channel is muted.
I can of couse go to LAV audio decoder -> Mixing -> Enable mixing + stereo, this way I can hear sound properly on stereo speakers, but then I need to uncheck "enable mixing" every time I switch to 5.1 setup and it's cumbersome.

So, is there a way to tell player/LAV/ffdshow "hey man, look at the system settings and find out how many audio channels are available, then use this knowledge to automix"?

huhn
19th August 2018, 22:46
what audio renderer hare you using?

windows is can do on it's own. you usually have to to nothing.

clsid
20th August 2018, 15:18
Control Panel > Sounds > Speakers > Configure > select Stereo

zlorf
20th August 2018, 19:59
@huhn
As I've written, I'm currently using LAV audio decoder, but previously I've tried ffdshow aduio as well (and the same problem).

@clsid
Yeah I've done that (Moreover, I've configured yamaha receiver to be 5.1 (in the same way via control panel)). The problem is that player + LAV still tries to output 5.1 content on these stereo speakers, effectively dropping center channel out.

clsid
20th August 2018, 21:06
It should not matter what the decoders are outputting. The Windows mixer is supposed to downmix it to stereo. The driver may be at fault.

zlorf
21st August 2018, 07:54
Ah, that may be the cause! I've recently updated audio drivers (realtek). I will take a look.

zlorf
28th August 2018, 07:54
@clsid Thanks, that was the right idea. After reinstalling audio drivers everything works as expected.