
www.veear.eu
User Manual (1.0.11)
EasyVR 3
55
token
is the index of the SonicNet token to play (0-255 for 8-bit tokens or 0-15
for 4-bit tokens)
delay
(1-28090) is the time in milliseconds at which to send the token, since
the beginning of the next sound playback
Return values:
true
if the operation is successful
Note:
The scheduled token remains valid for one operation only, so you have to call
immediately after this function.
void playSoundAsync (int16_t
index
, int8_t
volume
)
Starts playback of a sound from the sound table. Manually check for completion with
Parameters:
index
is the index of the target sound in the sound table
volume
(0-31) may be one of the values in
Note:
The module is busy until playback completes and it cannot accept other commands. You can
interrupt playback with
bool playSound (int16_t
index
, int8_t
volume
)
Plays a sound from the sound table and waits for completion
Parameters:
index
is the index of the target sound in the sound table
volume
(0-31) may be one of the values in
Return values:
true
if the operation is successful
Note:
To alter the maximum time for the wait, define the EASYVR_PLAY_TIMEOUT macro before
including the
bool dumpSoundTable (char *
name
, int16_t &
count
)
Retrieves the name of the sound table and the number of sounds it contains
Parameters:
name
points to an array of at least 32 characters that holds the sound table
label when the function returns
count
is a variable that holds the number of sounds when the function returns
Return values:
true
if the operation is successful
bool playPhoneTone (int8_t
tone
, uint8_t
duration
)
Plays a phone tone and waits for completion