WMFP.GetVolume
--------------

Queries the audio volume.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMFP](component_WMFP.md) | [10.0](newinversion100.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMFP.GetVolume"; Player ) 

**MBS**( **"WMFP.GetVolume";** /\* Queries the audio volume. \*/  
**$Player**) /\* The reference number for the Windows Media Foundation Player object.e.g. $$Player \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Player | The reference number for the Windows Media Foundation Player object. | $$Player |

### Result

Returns number or error.

### Description

Queries the audio volume.  
Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).  
### Examples

Query volume:

 Set Variable \[ $volume ; Value: MBS ( "WMFP.GetVolume"; $Player ) \]  
### See also

- [WMFP.SetVolume](WMFPSetVolume.md)

This function checks for a license.

Created 25th December 2019 , last changed 9th November 2021

  
[WMFP.GetVisible](WMFPGetVisible.md) - [WMFP.List](WMFPList.md)

[HTML Version](WMFPGetVolume.shtml)