IXAPOHrtfParameters::SetSourceGain method

Sets the custom direct-path gain value for the current source position. Valid only for sounds played with the HrtfDistanceDecayType custom decay type.

Syntax


HRESULT SetSourceGain(
  [infloat gain
);

Parameters

gain [in]

The custom direct-path gain value for the current source position. Valid only for sounds played with the HrtfDistanceDecayType custom decay type.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

HrtfApoApi.h

DLL

HrtfApo.dll

See also

IXAPOHrtfParameters

 

 

Show: