Can we debug output for this issue? Open VLC, open the Messages panel, start playback, pause as soon as playback actually started, save the log. Feel free to post it here or on some paste bin.
Ok, this is impossible to debug without a testing device. I'll try to get my hands on it.
Jean-Baptiste Kempfchanged title from Bad Surround Channel Mapping in 2.1.2 & 2.1.1 to Regression: Bad Surround Channel Mapping on OSX with external audio cards
changed title from Bad Surround Channel Mapping in 2.1.2 & 2.1.1 to Regression: Bad Surround Channel Mapping on OSX with external audio cards
I see that you have even more free channels available. May I ask you to test two other things for me if its possible? That would be really great.
First, I am interested what happens if you do a 7.1 setup in Audio-Midi Setup and play a 5.1 source. (Maybe you can check the output of the 2 extra channels with a headphone?)
Second, I would be interested in a non-common setup where you leave the first channel in the list unused, and then assign your existing 5.1 setup to channels 2-7. Does the test file still play correctly?
It would be cool if you can test both scenarios with both my modified version of VLC, and the latest release version. Thanks for your support.
auhal: rework channel mapping for analog surround outputThe code reads the user-defined settings and adapts channel reordering accordingly,not the other way around.fixes [#10125](https://code.videolan.org/videolan/vlc/-/issues/10125), should also close [#10199](https://code.videolan.org/videolan/vlc/-/issues/10199)
I tried the dropbox version of 2.2.0-git on my setup. It stills ignores my channel orderings (tried with AC3-test.rar Note in the log it says "no channel reordering needed".
Thanks for your report. Looks like you have the interesting case that you left channel 1 and 2 free. (BTW, is there any particular reason for that?)
Please complete your report by saying what signal you exactly hear from each of your channels. If possible, it is also helpful if you can check if you can hear something on your unused channels 1 and 2. A screenshot of your audio-midi setup channel mapping might be also useful.
I'll try a mapping with channels 1 and 2 used.
Channel 1 and 2 are directed to the stereo input of my amp. (so the circuits for the surround output are not powered)
Channel 3-8 to the discrete surround input of my amp. (It's even more complicated than that: I usually map the surround to the adat output which must be around channels 20-26 to a loop back into the sound interface which allows me to fine tune volume and eq of front and rear channels and redirect sub to the mains)
So you can't assume that input 1 and 2 (or even the first audio stream) will be used for output or that there would be no gap in the channels. You can't assume channels will be on the same stream (could be a composite audio interface). The same assumptions shouldn't be done for stereo either. (I might want to output stereo on the phones)
If you want to test this without an audio interface, I suggest you install soundflower which will act as a fake interface.
The mapping in use for the log: 5.1 surround. 3->left 4->right 5->left surround 6->left surround 7->center 8->sub (a screenshot would be of no use as the popup don't show the last characters)
I tried the mapping: 1->left, 2->right, 5-> surround left, 6-> surround right, 7->center 8-> sub : doesn't remap
I tried the mapping: 1->left, 2->right, 3-> center, 4-> sub, 5-> surround left, 6-> surround right : does remap
I tried the mapping: 3->left, 4->right, 1-> surround left, 2-> surround right, 5-> center, 6-> sub: does remap (but strangely I had to restart VLC once more)
I tried the mapping: 3->left, 4->right, 1-> surround left, 2-> surround right, 5-> center, 8-> sub: does remap but plays sub on channel 6 instead of 8
When remapping doesn't work the result is:
1-> left, 2->right, 3-> surround left, 4->surround right, 5-> center, 6-> sub
Note: 1-8 are channels named analog 1-8 on the interface which maps to 0-7 in the VLC log
Thanks for the detailed feedback. So basically, channel remapping works as long as you continously assign the channels from number 1 onwards.
Your setup is more complicated and has probably never worked with VLC. Thus, I created a new ticket #10800 (closed) as it does not really fit here anymore.
No: it worked great for years (I developed a patch a long time ago which was replaced by a much better design later). Last version working is VLC 2.09 even across streams.
This is really a (critical in my opinion) regression.
Ah, sorry, you are absolutely right. 2.0.9 is working fine in your setup for me, too.
I compared the 2.0 and 2.1 implementation again and it looks like I found the small one-liner bug. At least, your setup seems to work fine now with Soundflower.