Posts: 6,810
Joined: Jul 2010
Reputation:
198
That's strange, log looks ok. If you played a video with this channel layout: FL,FR,FC,LFE,SL,SR, would you hear sound on the backs?
ffmpeg mixes BC into BL/BL or SL/SR, so it should not matter if sides or backs are returned by the sink.
Posts: 112
Joined: Apr 2012
Reputation:
8
Shine
Senior Member
Posts: 112
2013-12-10, 22:56
(This post was last modified: 2013-12-10, 23:19 by Shine.)
I noticed the discrepancy between SL/SR and BL/BR as well. Without your last patch, it tried to init FL,FR,FC,BL,BR and failed. My diff added, it inits FL,FR,FC,LFE,BL,BR and the rears are working. So perhaps the upmixer has already decided to mix into BL/BR, and by initializing SL/SR now, these channels are lost?
"Regular" 5.1 works on all channels, regardless whether it's BL/BR or SL/SR. Just double-checked, since most stuff I have is "5.1 (side)", but the few things I have that are "5.1" work fine as well (and always did).
Edit: I could reproduce the missing rears now with regular 5.1 stuff. I set my output to "5.0" in XBMC settings, so WASAPI initialization would fail in all cases and it would therefore forcibly run into your loop. In this case, the rears are always lost, regardless whether I'm playing "5.1 (side)" or "5.1" streams.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
You need to set channel layout to 7.1 for this test, then play FL,FR,FC,LFE,SL,SR. If you set channel layout in XBMC to 5.1, it requests BL/BR from the sink. It looks like SL/SR are not mapped by you device.
Posts: 112
Joined: Apr 2012
Reputation:
8
Shine
Senior Member
Posts: 112
2013-12-11, 13:11
(This post was last modified: 2013-12-11, 13:15 by Shine.)
I have the channel layout set to 7.1.
Both SL/SR and BL/BR are mapped. The rear channels are only lost as soon as XBMC runs into your new loop.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
This confuses me because PR 3744 includes the other two changes you mentioned. When did you apply PR3744? Commits in this PR changed a couple of times before merge.
If the change I mentioned was missing, it would explain the behavior. If you have this change, I have no idea what's going wrong. From an engine perspective it does not matter it the engine requests FL,FR,FC,LFE,SL,SR and sink returns this layout or engine requests FL,FR,FC,SL,SR and sink returns FL,FR,FC,LFE,SL,SR. So assuming engine works correct the issue must be in the sink. But I don't see what could be wrong there.
Posts: 112
Joined: Apr 2012
Reputation:
8
Shine
Senior Member
Posts: 112
I applied PR 3744 on December 2 (around evening). I will reapply the current PR version tonight and report back.
Posts: 112
Joined: Apr 2012
Reputation:
8
Shine
Senior Member
Posts: 112
2013-12-11, 21:16
(This post was last modified: 2013-12-11, 21:24 by Shine.)
Recompiled using the latest version of PR 3744 (and nothing else), now it's working as expected. So I guess I was missing one or more of the PR changes that happened after Dec 2.
Thank you for your effort!!
Posts: 6,810
Joined: Jul 2010
Reputation:
198
We have just cleaned out all that mess from advanced settings. If a setting makes sense for more than a single user it should go to gui settings.