Technical data
DOC-01-TELAS-CRG-4 ASTi ACE Studio Components Reference Guide Rev.M
12 Copyright © 2014 Advanced Simulation Technology inc.
2.4. Complex Playsound
Summary: The Complex Playsound component plays digitally encoded soundfiles
with dynamically varying elements. The elements occur in three sequences a ramp
up sound, a loop file, and a run down sound.
For those users familiar with the MBV sound library complex loop, this is
essentially the same thing only now this function is provided by a separate
component.
Note: Playsounds used in the Complex Playsound must be set to buffer for proper
operation. In the Sound Library set the buffer to true for the sound.
Description: The Complex Playsound component starts playing the preamble
soundfile when the trigger goes True. After playing the preamble in its entirety the
loop soundfile is then played. The loop soundfile continues to play in a lop until the
trigger goes False. At this point the postamble sound file is played.
The trigger and pause input parameters control playback. Within the complex
playsound component, the library ID must be set. The group ID can be set locally
within the component, and also modified or set by an external control. The indices
(preamble, postamble, and loopsound) determine which soundfiles are used within
the specified library and group. A group value of 0 indicates that the soundfile is
not in a group, but directly under the library.
The output signal can be connected to any component that accepts audio as an
input, such as a Balancer or a Mixer.
Complex Playsound
Loop
While Trigger = True
Trigger = False
Start
Finish
Trigger = True
Preamble PostambleLoop
Audio Inputs
LoopSoun-
dIdx
Type Default Value
playsound_sound 0
Description: The value of the loop file index to be played. This
index is used to select a file from within a group.
If no matches are found then no file is played. If no external variable
is connected to Index, the offset is used.
Postamble
SoundIdx
Type Default Value
playsound_sound 0
Description: The value of the postamble file index to be played.
This index is used to select a file from within a group.
If no matches are found then no file is played. If no external variable
is connected to Index, the offset is used.
Preamble-
SoundIdx
Type Default Value
playsound_sound 0
Description: The value of the preamble file index to be played. This
index is used to select a file from within a group.
If no matches are found then no file is played. If no external variable
is connected to Index, the offset is used.
Trigger
Type Default Value
boolean false
Description: The trigger state, a value of TRUE starts playing the
soundfile.










