IWMResamplerProps::SetUserChannelMtx method (wmcodecdsp.h)

Specifies the channel matrix.

Syntax

HRESULT SetUserChannelMtx(
  [in] ChMtxType *userChannelMtx
);

Parameters

[in] userChannelMtx

Pointer to an array of floating-point values that represents a channel conversion matrix.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

This method is equivalent to setting the MFPKEY_WMRESAMP_CHANNELMTX property, except that the matrix is represented differently:

  • Values are floating point.
  • The matrix is transposed.
To convert from the integer values given in the MFPKEY_WMRESAMP_CHANNELMTX property to floating-point values, use the following formula:

(float)pow(10.0,((double)Coeff)/(65536.0*20.0))

where Coeff is an integer coefficient.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmcodecdsp.h

See also

IWMResamplerProps Interface