XenoGuard 4.0 Documentation
Audio File
ActionStep Reference » Windows » Audio » Audio File
The ActionStep Audio File plays an audio file located in a specified directory. It recognizes audio file formats such as Audio Interchange File Format (.aiff), Monkey's Audio (.ape), Free Lossless Audio Codec (.flac), MPEG-1 Audio Layer III (.mp3), MPEG-4 (.mp4), OGG Vorbis (.ogg), Waveform Audio File (.wav) and Windows Media Audio (.wma)
[-] Hide
- Open the Windows node in the Workspace Explorer.
- In the Audio node, select the Audio File ActionStep.
Parameters:
The ActionStep has the following input parameters:
name |
Description
|
---|---|
File Path
|
The path of the audio file.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Type [Variable, Parameter, Enum] |
Start Position [ms]
|
The position where the audio file will start to play.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] Allowed Values [Unsigned Number] |
Duration [ms]
|
The length of time of the section to play.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] Allowed Values [Unsigned Number] |
Accepted audio file format includes AIFF, APE, FLAC, MP3, MP4, OGG, WAV and WMA. |
The audio file runs the full length if the value set for the Start Position is more than its length. |
Example 1 (Run audio files from a playlist directory):
This example plays audio files from a specified directory and displays the audio's filename via Message Box.