Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Does the Audio Resampler DSP realy need the caller to allocate the output sample ?

$
0
0

Hello

The Audio Resampler DSP does not give back any flags when calling GetOutputStreamInfo. If we go by the Documentation, then we can assume that we need to allocate the output sample right ?

My observation:

If i pass NULL with pSample in the MFT_OUTPUT_DATA_BUFFER structure, then i get a MF_E_TRANSFORM_NEED_MORE_INPUT ( poor choice of error code by the developer of that MFT but well … ) when calling ProcessOutput.

If i allocate a sample and pass it with pSample in the MFT_OUTPUT_DATA_BUFFER structure, then ProcessOutput succeeds.

So it definitly looks like we need to allocate the output samples for ProcessOutput. I would just like to get a confirmation here that the Audio Resampler DSP needs the caller to allocate the output sample.

Thanks




Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>