HResult 0x80040204 from IMediaObject::ProcessInput

0

I get this Hresult when i resample PCM Sound to a IEEE:Float Sound with DirectXMediaResampler. Changing the bits per sample with the same sampling rate is no problem. Also resamppling from IEEE:Float to PCM. This HResult is not documented in context with a DMO object. And it doesn't happen on every resampling but periodically.

Does anyone know or could guess what it means.

c++
pcm
hresult
resampling
dmo
asked on Stack Overflow Jun 28, 2012 by Someone_else • edited Jun 28, 2012 by Someone_else

1 Answer

0

That's DMO_E_NOTACCEPTING; the documentation says:

DMO_E_NOTACCEPTING: Data cannot be accepted.

You can see the code that generates this in dmoimpl.h, although without the derived DMO code I don't think that helps (it means the DMO's InternalAcceptingInput method didn't return S_OK).

I guess this all means that the ResamplerDMO doesn't like your input data. Is it definitely set up correctly?

answered on Stack Overflow Jun 28, 2012 by Rup

User contributions licensed under CC BY-SA 3.0