Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMFMediaEngineEx::SetBalance method

Sets the audio balance.

Syntax


HRESULT SetBalance(
  [in]  double balance
);

Parameters

balance [in]

The audio balance. The value can be any number in the following range (inclusive).

ValueMeaning
-1

The left channel is at full volume; the right channel is silent.

1

The right channel is at full volume; the left channel is silent.

 

If the value is zero, the left and right channels are at equal volumes. The default value is zero.

Return value

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

Remarks

When the audio balance changes, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_BALANCECHANGE event. See IMFMediaEventNotify::EventNotify.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfmediaengine.h

See also

IMFMediaEngineEx

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.