Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WMFP.SetBalance
Sets current audio balance.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WMFP | 10.0 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
MBS( "WMFP.SetBalance"; Player; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Player | The reference number for the Windows Media Foundation Player object. | $$Player |
Value | The new value. | 0 |
Result
Returns OK or error.
Description
Sets current audio balance.The value can be any number in the following range (inclusive).
Value | Meaning |
-1.0 | The left channel is at full volume; the right channel is silent. |
+1.0 | 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.
Examples
Set balance to play only right speaker:
MBS( "WMFP.SetBalance"; $$Player; 1.0)
See also
Blog Entries
This function checks for a license.
Created 25th December 2019, last changed 13th January 2020
