Microsoft DirectX 9.0

IMSVidAudioRenderer::put_Balance

This topic applies to Windows XP only.

The put_Balance method specifies the audio renderer's balance level.

Syntax

HRESULT put_Balance(
  long lBal
);

Parameters

  lBal

[in]  Specifies the balance level.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The balance level is a value between –10,000 and 10,000, measured in hundredths of a decibel (dB). If the value is -10,000, the left channel is at full volume and the right channel is attenuated by 100 dB. If the value is 10,000, the right channel is at full volume and the left channel is attenuated by 100 dB. If the value is zero, both channels are at full volume.

See Also