When I put a source of:
PCMAudio 44.1 Khz 16 bit 2 channels (stereo)
and connect this to the Encoder: everything works! I can then take the output of the Encoder, connect it to the AAC Decoder and then to the Audio Renderer (Default DirectSound Device) and I hear the audio perfectly.
However, when I connect a source of:
PCMAudio 44.1 Khz 16 bit6 channels (5.1)
and try to connect this to the Encoder it fails! The only thing changed here from the previous test was that I have 6 channels and not 2.
I checked and verified that AAC standard supports 5.1 (6 channels), but somehow I can't make the AAC Encoder connect to such a source.
For the H264 Encoder there's open source that I can look at (DirectShow/GraphEdit), however, for the AAC Encoder/Decoder filters there's no source code: so I don't know why it's not working.
Any help is greatly appreciated here,
The sample Direct Show filters are provided to assist in development of applications using the Media SDK video capabilities. They and are not intended to be full-featured or used in a production environment. The audio encoder sample filter does not support creation of 5.1 audio content.