The Sound functions allow you to open a sound in a script and then play the sound in your publication. These OpusScript functions are equivalent to using the Play Sound action in the Audio/Video menu of the Actions dialog. To use these functions, you must first use the PlaySound function or the OpenSound function to create a new Sound object in the script.
Hierarchy:
As well as the specific functions listed under the Functions: heading below, you can also use the following OpusScript functions:
Class Hierarchy:
Sound
Basic Objects
Functions:
Get the current position in seconds for a sound object | |
Get the volume level of a specified device | |
Get the volume level of a specified sound object | |
Open a sound file but don’t play it | |
Play a sound object | |
Play a sound file using the filename as a parameter | |
Reposition the starting point of a sound | |
Pauses a Wav sound object at its current position | |
Resume a Wav sound object paused using the Pause function. | |
Set the current position in seconds for a sound object | |
Set the volume level for a specified device | |
Set the volume level for a specified sound object | |
Stop a sound object |