IHTMLBGsound::balance Property

Sets or gets the value indicating how the volume of the background sound is divided between the left speaker and the right speaker.

Syntax

HRESULT IHTMLBGsound::get_balance(VARIANT *p);
HRESULT IHTMLBGsound::put_balance(VARIANT v);

Parameters

  • p
    Pointer to a variable of type VARIANT of type VT_I4 that receives a value in the range between -10,000 and +10,000. A -10,000 value indicates that all sound is directed to the left speaker. A +10,000 value indicates that all sound is directed to the right speaker. A zero value indicates that the sound is balanced between the left speaker and the right speaker.
  • v
    VARIANT of type VT_I4 that specifies a value in the range between -10,000 and +10,000. A -10,000 value indicates that all sound is directed to the left speaker. A +10,000 value indicates that all sound is directed to the right speaker. A zero value indicates that the sound is balanced between the left speaker and the right speaker.

Return Value

Returns S_OK if successful, or an error value otherwise.