Page 1 of 1

tvOS multichannel audio

Posted: 09 Nov 2015 18:28
by adammfisch
I have been able to use AVFoundation to enable my AVAudioSession to use the max number of outputs available of 8 (7.1 audio).
It will then show on my receiver the PCM 3/4/.1 output, but is still not getting any sound on the rear speakers since VLC is outputting 2.0 audio.

Reading around the forums I think VLCKit is downsampling all audio to 2.0.
Is there a way to output the encoded multichannel audio to the apple tv 4?

Thanks!

Re: tvOS multichannel audio

Posted: 10 Nov 2015 10:44
by fkuehne
No, the code is simply not there. This is not difficult to implement. Help welcome.

Re: tvOS multichannel audio

Posted: 10 Nov 2015 15:53
by adammfisch
I have been trying to code it in myself. Any direction on what needs to be modified would be appreciated.
I tried setting the audio output to "afile" which said it should give the files audio, but it then resulted in no audio at all. I will try some more things but am not sure if it is just on the player instance that settings need to be changed or if it is somewhere deeper in the actual vlc code.

I found in the audiounit_ios where it was setting the audio format to a specific stereo constant which I removed to allow it to be based off the original channels. Hopefully this fixes it.