masterVolume
masterVolumeJavaScript
MasterVolume.net
masterVolumeAndroid
Description​
The current master volume as percentage (0-1). Gets or sets the master volume of the overall audio being played. The volume is annotated in percentage where 1.0 would be the normal volume and 0.5 only 50%.
- JavaScript
- C#
- Kotlin
masterVolume: number;
double MasterVolume { get; set; }
var masterVolume: Double
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.masterVolume = 0.5;
var api = new AlphaTabApi<MyControl>(...);
api.MasterVolume = 0.5;
val api = AlphaTabApi<MyControl>(...)
api.masterVolume = 0.5