none
Media Foundation record audio RRS feed

All replies

  • Hi

    Thank you for posting here.

    Since this thread is related to Media Foundation, I will move it to Media Foundation Development for Windows Desktop forum for suitable support.

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=mediafoundationdevelopment

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 2, 2019 8:47 AM
  • Hi,

    According to msdn doc,

    https://docs.microsoft.com/en-us/windows/desktop/api/mftransform/nf-mftransform-imftransform-processinput

    If the MFT already has enough input data to produce an output sample, it does not accept new input data, and ProcessInput returns MF_E_NOTACCEPTING. At that point, the client should clear the pending input data by doing one of the following:

    After the client has set valid media types on all of the streams, the MFT should always be in one of two states: Able to accept more input, or able to produce more output. It should never be in both states or neither state. An MFT should only accept as much input as it needs to generate at least one output sample, at which point ProcessInput returns MF_E_NOTACCEPTING. When ProcessInput returns MF_E_NOTACCEPTING, the client can assume that the MFT is ready to produce output.

    And also notice that the MFT should maintain a count of pending METransformNeedInput events. Any call to ProcessInput that does not correspond to an METransformNeedInput event must return MF_E_NOTACCEPTING.
    If ProcessInput is called before MFT_MESSAGE_NOTIFY_START_OF_STREAM or after MFT_MESSAGE_NOTIFY_END_OF_STREAM, the method must return MF_E_NOTACCEPTING.

    Best regards,

    Drake


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, April 3, 2019 8:45 AM
    Moderator
  • Thank you, Drake. I already find the solution by myself.
    Thursday, June 27, 2019 8:36 AM