4D v16.3PLAY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
PLAY
PLAY
The PLAY command plays sound or multimedia files. You pass the full pathname of the file you want to play in objectName. On OS X, the command can also be used to play a system sound.
Note: 'snd' resources, as used on Mac OS 9 and older, are no longer supported. The async parameter specifies that the sound will play asynchronously on Windows. Synchronous play means that all processing stops until the sound has finished playing; asynchronous means that processing does not stop and the sound plays in the background. If async is passed and contains 0 (or any longint value), the sound is played asynchronously. If omitted, the sound is played synchronously. To stop playing an asynchronous sound, use the following statement: PLAY("";0) The following example shows how to play a WAV file on Windows: $DocRef :=Open document("";"WAV";Read Mode) The following example code plays a system sound on OS X:
PLAY("Submarine.aiff")
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||