Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WMFP.SetVolume
Sets the audio volume.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WMFP | 10.0 | No | Yes | No | Yes, Windows only | No |
MBS( "WMFP.SetVolume"; Player ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Player | The reference number for the Windows Media Foundation Player object. | $$Player |
Result
Returns OK or error.
Description
Sets the audio volume.Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).
If you call this method before playback starts, the setting is applied after playback starts.
Examples
Set to volume to 50%:
Set Variable [$r; Value: MBS( "WMFP.SetVolume"; $$Player; 0.5 ) ]
See also
Created 25th December 2019, last changed 26th December 2019
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins