locked
Adding WASAPI errors to MFFriendlyErrors.h RRS feed

  • Question

  • I would like to add the WASAPI AUDCLNT_E_* errors to the file MFFriendlyErrors.h (from MF Prop Dump sample project) for use in my mixed WASAPI/MF project.

    Is it possible, if so where do they go?

    Inserting

    AUDCLNT_E_NOT_INITIALIZED
    up to
    AUDCLNT_E_INVALID_DEVICE_PERIOD
    after
    D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD

    stops some other errors from being found by MFFriendlyConvertHRESULT().  Not all the existing errors in that file seem to be in numerical order,  should they be?

    e.g. ERROR_AUDITING_DISABLED, NS_E_NOCONNECTION, NS_E_ALREADY_CONNECTED etc.

    Thursday, July 19, 2012 11:02 AM

Answers

  • Yes, the intention is that this table should be sorted by the HRESULT value.  It looks like somebody sneaked some unsorted values in there -- the array has to be propertly sorted for the binary search function below it to work correctly.
    • Marked as answer by John_78f Thursday, August 16, 2012 12:25 PM
    Thursday, August 16, 2012 12:41 AM