PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the current setting of the volume for a sound source.
Note: This function can be used in the emulator.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
nVolume is int = VolumeGet(volumeRing)
Syntax
<Result> = VolumeGet([<Source> [, <Options>]])
<Result>: Integer
  • Value of the volume for the specified source,
  • -1 if an error occurred. In this case, the ErrorOccurred variable is set to True. To find out the error details, use ErrorInfo.
<Source>: Optional Integer constant
Sound source to use.
volumeAlarmVolume of the alarme.
volumeCallVolume of calls.
volumeDefaultVolume of default source. This source depends on the phone configuration.
volumeMusicVolume used when playing an audio or video file.
volumeNotificationVolume of the sound emitted during a new notification.
volumeRing
(Default value)
Volume of phone ring.
volumeSystemVolume of system sounds.
<Options>: Optional Integer constant
Versions 19 and later
Type of volume to retrieve:
volumeCurrent
(Default value)
Current volume of specified source. This volume is included between 0 and the maximum value for the volume of the source.
volumeCurrentPercentageCurrent volume of specified source, expressed in percentage of its maximum value. This volume is included between 0 and 100.
volumeMaxMaximum volume of specified source.
New in version 19
Type of volume to retrieve:
volumeCurrent
(Default value)
Current volume of specified source. This volume is included between 0 and the maximum value for the volume of the source.
volumeCurrentPercentageCurrent volume of specified source, expressed in percentage of its maximum value. This volume is included between 0 and 100.
volumeMaxMaximum volume of specified source.
Type of volume to retrieve:
volumeCurrent
(Default value)
Current volume of specified source. This volume is included between 0 and the maximum value for the volume of the source.
volumeCurrentPercentageCurrent volume of specified source, expressed in percentage of its maximum value. This volume is included between 0 and 100.
volumeMaxMaximum volume of specified source.
Remarks
  • To modify the setting of the volume for a sound source, use VolumeModify.
  • To modify the sound source associated with the physical button used to set the volume of the device, call VolumePhysicalButton.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Components
Android wd230android.jar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment