2013-08-19, 22:23
After the 5.1 to Ac3 audio was fixed. I looked a bit into the 5.1 96khz flac via LPCM, that my AVR did not get right and in deed.
When I change speakers to 4.0 - i can hear all speakers. So I thought, that must be a bandwidth problem. On linux der is not SNE24 format. All the 24 get into SNE32 something. So if one calcs the overhead, it is for 6 channels exact two channels too much:
6*32 - 6 * 24 = 6*(32-24) = 2* 24
So - two ways to fix that:
a) check for channels > 4 and check the bitrate and choose 48khz (is trivial and here: https://github.com/fritsch/xbmc/commit/7...892a4238cd)
b) check if number of bits of sink format equals number of bits input format, if yes - keep all as is - if not - downsample.
Btw. the windows guys with SNE24 should have it working.
PS: A theory is as long invalid until it is proofed correct.
When I change speakers to 4.0 - i can hear all speakers. So I thought, that must be a bandwidth problem. On linux der is not SNE24 format. All the 24 get into SNE32 something. So if one calcs the overhead, it is for 6 channels exact two channels too much:
6*32 - 6 * 24 = 6*(32-24) = 2* 24
So - two ways to fix that:
a) check for channels > 4 and check the bitrate and choose 48khz (is trivial and here: https://github.com/fritsch/xbmc/commit/7...892a4238cd)
b) check if number of bits of sink format equals number of bits input format, if yes - keep all as is - if not - downsample.
Btw. the windows guys with SNE24 should have it working.
PS: A theory is as long invalid until it is proofed correct.