1

Topic: MSVAD with support MEDIASUBTYPE_IEEE_FLOAT

On classic MSVAD provides quitting  with type MEDIASUBTYPE_PCM. It would be desirable to add and support MEDIASUBTYPE_IEEE_FLOAT. If it is stupid"to add there this type, after driver DirectShow assembly sees only MEDIASUBTYPE_PCM. Here the code: static KSDATARANGE_AUDIO PinDataRangesStream [] = {{{sizeof (KSDATARANGE_AUDIO), 0, 0, 0, STATICGUIDOF (KSDATAFORMAT_TYPE_AUDIO), STATICGUIDOF (KSDATAFORMAT_SUBTYPE_PCM), STATICGUIDOF (KSDATAFORMAT_SPECIFIER_WAVEFORMATEX)}, MAX_CHANNELS_PCM, MIN_BITS_PER_SAMPLE_PCM, MAX_BITS_PER_SAMPLE_PCM, MIN_SAMPLE_RATE, MAX_SAMPLE_RATE}, {{sizeof (KSDATARANGE_AUDIO), 0, 0, 0, STATICGUIDOF (KSDATAFORMAT_TYPE_AUDIO), STATICGUIDOF (KSDATAFORMAT_SUBTYPE_IEEE_FLOAT), STATICGUIDOF (KSDATAFORMAT_SPECIFIER_WAVEFORMATEX)}, MAX_CHANNELS_PCM, 32, 32, 44100, 44100}}; static PKSDATARANGE PinDataRangePointersStream [] = {PKSDATARANGE (&PinDataRangesStream [0]), PKSDATARANGE (&PinDataRangesStream [1])}; Further all without changes, except functions where support of this new type is added: NTSTATUS CMiniportWaveCyclicMSVAD:: ValidateFormat () NTSTATUS CMiniportWaveCyclic::PropertyHandlerProposedFormat () If simply to replace KSDATAFORMAT_SUBTYPE_PCM on KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, the driver to be installed, but DirectShow it does not see. Ideas?

2

Re: MSVAD with support MEDIASUBTYPE_IEEE_FLOAT

Hello, Vicul, you wrote: V> If simply to replace KSDATAFORMAT_SUBTYPE_PCM on KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, the driver to be installed, but DirectShow it does not see. V> ideas? In drivers, with it, no business had, but, for example, in DirectShow too nobody incorporates to such type. Here by analogy it can be necessary: the type at IEEE_FLOAT all PCM always is underlined (KSDATAFORMAT_SUBTYPE_PCM) and here already instead of WaveFormatEx is palmed off WAVEFORMATEXTENSIBLE and already there it is underlined specific subtype (KSDATAFORMAT_SUBTYPE_IEEE_FLOAT). If for AM_MEDIA_TYPE: majortype = MEDIATYPE_AUDIO; subtype = MEDIASUBTYPE_PCM;//(always for all PCM)//... formattype = FORMAT_WaveFormatEx;//and already a format to fill correctly with WAVEFORMATEXTENSIBLE where the correct type, for example MEDIASUBTYPE_IEEE_FLOT is underlined; IA Can so?

3

Re: MSVAD with support MEDIASUBTYPE_IEEE_FLOAT

V> it is unintentional

4

Re: MSVAD with support MEDIASUBTYPE_IEEE_FLOAT

V> In drivers, with it, no business had, but for example in DirectShow too nobody incorporates to such type. Here by analogy it can be necessary: the type at IEEE_FLOAT all PCM always is underlined (KSDATAFORMAT_SUBTYPE_PCM) and here already instead of WaveFormatEx is palmed off WAVEFORMATEXTENSIBLE and already there it is underlined specific subtype (KSDATAFORMAT_SUBTYPE_IEEE_FLOAT). Thanks idea understood, I will try to stretch it on the driver