Prop-1 Example
SEROUT Sio, OT2400, ("!AP16", %01, "P?", 7, 1)
In this example, the AP-16+ at address %01 will play one of the files in the range SFX00 through SFX07.WAV
one time. If the ambient Loop switch (
) is closed and AMBIENT.WAV is on the SD card, it will restart when
SFXnn.WAV has finished playing.
"PA" :: Play AUX##.WAV File
Syntax:
"!AP16",
address
, "PA",
#
,
loops
Reply:
None
The
"PA"
(play SFX) command is used to play a specific AUX##.WAV file (1 to 8). The
loops
parameter is
used to specify the number of times to play the file (0 to 255); typically once (1). To continuously repeat the
specified file until another play or reset command, use zero (0) as the
loops
parameter.
Prop-1 Example
SEROUT Sio, OT2400, ("!AP16", %10, "PA", 7, 1)
In this example, the AP-16+ at address %10 will play AUX07.WAV one time. If the ambient Loop switch (
) is
closed and AMBIENT.WAV is on the SD card, it will restart when SFX01.WAV has finished playing.
"PW" :: Play Named WAV File
Syntax:
"!AP16",
address
,
name
, {CR},
loops
Reply:
None
The
"PW"
(play named WAV file) command is used to play a WAV file by name (which must conform to the
DOS 8.3 file naming convention). When using the
"PW"
command, the
".WAV"
file extension is optional, but
the file name must be terminated with a carriage return (13). As with the other play commands, the
loops
parameter is used to specify the number of times to play the file (0 to 255); typically once (1). To continuously
repeat the specified file until another play or reset command, use zero (0) as the
loops
parameter.
Prop-1 Example
SEROUT Sio, OT2400, ("!AP16", %11, "PW", "WOLF", 13, 2)
In this example, the AP-16+ at address %11 will play WOLF.WAV two times, back-to-back. If the ambient
Loop switch (
) is closed and AMBIENT.WAV is on the SD card, it will restart when WOLF.WAV has finished
playing both loops.
Note that if an invalid name is specified while the ambient file is playing, the ambient file will be restarted. The
AP-16+ must stop AMBIENT.WAV in order to search and verify the file specified in the
"PW"
command.
NOTE
: Any
"P"
command will always stop audio that is playing. Use the
"G"
command (get
status) to check on the AP-16+ if you do not desire this behavior
8
EFX-TEK
●
www.efx-tek.com
●