AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones MCI
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Modifies or returns the sound volume.
Note: If the current station has no sound card, the function has no effect and always returns 0.
Ejemplo
// Modification du volume sonore pour les fichiers de type "WAV"
ResVolume = MCIVolume("WAV", 200)
Sintaxis

Finding out and modifying the sound volume (all files) Ocultar los detalles

<Result> = MCIVolume(<Type of files> , <Element> [, <Volume> [, <Parameters> [, <Name of the message window>]]])
<Result>: Integer
Corresponds to:
  • the current sound volume.
  • the sound volume before modification.
  • 0 if an error occurs.
<Type of files>: Character string
Name or alias of the file or device to open.
<Element>: Constant
Element whose sound volume must be modified:
MciBassBass volume
MciLeftVolumeLeft volume
MciRightVolumeRight volume
MciTrebleTreble volume
<Volume>: Optional integer
New sound volume of the specified <Element> (included between 0 and 65535).
<Parameters>: Optional character string
Additional parameters if necessary. These parameters can be known by checking the documentation of the Windows MCI function named "Set".
The MciWait constant can be added to this string. This constant is used to indicate that the program must wait for the end of the MCI command to run the rest of application.
<Name of the message window>: Optional character string
Name of the window used to intercept and manage the different messages sent by MMSYSTEM.DLL. These messages are in MM_xxxxxx format and can be retrieved with Event. You can for example get messages regarding the management of the CD ROM or Joystick.

Finding out and modifying the sound volume (WAV and MID only) Ocultar los detalles

<Result> = MCIVolume(<Type of files> , <New volume> , <New volume 2>)
<Result>: Integer
Corresponds to:
  • the current sound volume.
  • the sound volume before modification.
  • 0 if an error occurs.
<Type of files>: Character string
Type of files:
  • "WAV" for the ".WAV" files.
  • "MID" for the ".MID" files.
  • Name or alias of the file or device to open.
<New volume>: Integer
New sound volume (included between 0 and 65535). If <New volume 2> is not specified, corresponds to the general sound volume; otherwise, corresponds to the left sound volume. Only taken into account by the WAV and MID files.
<New volume 2>: Integer
New sound volume (included between 0 and 65535). Corresponds to the right sound volume. Only taken into account by the WAV and MID files.
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local