I use Direct Show to read .MPG files composed of 5 audio streams and I would
like to select the audio streams to read.
The problem is that in all the doc of Direct Show, only the primary stream
is used even in the samples provided in the dxmedia kit.
There is a function IMultiMediaStream::GetMediaStream() which allow to pass
a REFMSPID as a "purpose id" for the value of the desired stream to get but
the doc say only that MSPID_PrimaryAudio is the most common used "purpose
id" and don't explain how to get the other audio streams.
I noticed that the tool VCDPLYER.EXE provided in the DXMEdia 5 is able to
enumerate the four streams of my .MPG file and can play an audio stream
selected in 'stream' popup menu but the source code of this tool is not
- could you explain me how to read a specified audio stream in a .MPG file
other than the primary one or could you explain me how to modify the sample
SHOWSTRM of the DXMEDIA kit to read any specified audio stream ?
Thanks a lot for if you can help me.