- Stopping a non-locking sound
- Size of sound files
- Locking sound
- Sound and component
Sound (Function) In french: Son Versions 19 and later New in version 19 Syntax <Name of WAV file>: Character string (with quotes) Full or relative name of file to play. This file can be: a WAV file. Versions 16 and later an audio file corresponding to all the formats supported by the OS (wav, mp3, 3gp, ogg, etc.). A summary of the supported audio files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Remarks: - The wav files in 32-bit format are not supported by Android.
- This parameter can correspond to a URL. In this case, it is necessary to add the INTERNET permission when generating the application.
New in version 16 an audio file corresponding to all the formats supported by the OS (wav, mp3, 3gp, ogg, etc.). A summary of the supported audio files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Remarks: - The wav files in 32-bit format are not supported by Android.
- This parameter can correspond to a URL. In this case, it is necessary to add the INTERNET permission when generating the application.
an audio file corresponding to all the formats supported by the OS (wav, mp3, 3gp, ogg, etc.). A summary of the supported audio files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Remarks: - The wav files in 32-bit format are not supported by Android.
- This parameter can correspond to a URL. In this case, it is necessary to add the INTERNET permission when generating the application.
Versions 17 and later a file in wav format. New in version 17 a file in wav format. a file in wav format. Versions 21 and later a file in mp3, wav, wma or m4a format. New in version 21 a file in mp3, wav, wma or m4a format. a file in mp3, wav, wma or m4a format.
<Option>: Optional integer constant Runtime mode of sound: | | soundWait | The code is locked as long as the sound is not entirely played. | soundLoop | The sound is played in a loop. Caution: The file to play must be found on disk and not in the library (WDL file). | soundDefault (Default value) | The code continues to run as soon as the sound is started. |
Versions 16 and later New in version 16 Versions 19 and later New in version 19Remarks Stopping a non-locking sound A sound played in non-locking mode can be stopped by the following code, called on a user action for example (click, control modification, etc.): Size of sound files Using large WAV files may trigger several problems (not enough RAM to load the sound, system stopped depending on the Windows version, etc.). For large ".WAV" files (several dozen megabytes), we recommend that you use the MCI functions. Locking sound A sound is necessarily locking: - If the sound is stored in a WINDEV library (.WDL file).
- If the sound comes from a binary memo.
Sound and component Sound is a non-locking function by default. To use Sound in a component without locking the application, you must comply with the following constraints: - The file corresponding to the sound must not be found in the WDL or in the component.
- The file corresponding to the sound must be found in the EXE directory of the application.
This page is also available for…
|
|
|
| |
| | Radio Online no Windev Mobile... wd e wb.. Streammer de som em aplicativo é possível usando o comando sound.
O comando Sound () aceita uma URL como parâmetro, portanto, você pode usar um código como:
sound("http://177.124.130.15:8258/stream")
Observe, no entanto, que essa sintaxe não está documentada e que, para o Android 9, o URL deve começar com https.
Desejamos a você grande sucesso no desenvolvimento de nossos produtos.
Ex.:
sound("http://177.124.130.15:8258/stream") |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|