|
|
|
|
|
Retrieves the current setting of the volume for a sound source. Note: This function can be used in the emulator. nVolume is int = VolumeGet(volumeRing)
Sintaxis
<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 get more details on the error, use ErrorInfo.
<Source>: Optional Integer constant Sound source to use. | | volumeAlarm | Volume of the alarme. | volumeCall | Volume of calls. | volumeDefault | Volume of default source. This source depends on the phone configuration. | volumeMusic | Volume used when playing an audio or video file. | volumeNotification | Volume of the sound emitted during a new notification. | volumeRing (Default value) | Volume of phone ring. | volumeSystem | Volume of system sounds. |
<Options>: Optional Integer constant 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. | volumeCurrentPercentage | Current volume of specified source, expressed in percentage of its maximum value. This volume is included between 0 and 100. | volumeMax | Maximum volume of specified source. |
Observaciones - 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.
Componente: wd300android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|