updating DSP plug-in for Media Foundation question



I am trying to update a DSP audio plug-in to have all the "Media Foundation"
features. In the routine "DoProcessOutput" I have the following code:

if (bComplete)
{
m_spInputBuffer = NULL; // Release smart pointer
m_cbInputLength = 0;
m_pbInputData = NULL;
m_bValidTime = false;
m_rtTimestamp = 0;
}
else
{
// Let the client know there is still data that needs processing
// in the input buffer.
pOutputBuffers[0].dwStatus |= DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE;
m_pbInputData += cbInBytesProcessed;
m_cbInputLength -= cbInBytesProcessed;
}

I've added the "MFTProcessOutput" routine, and I need the equivalant method
to notify the player that there is still data in the input buffer. How does
that work?


.


Loading