User Manual

www.veear.eu
User Manual (1.0.14) EasyVR 3 59
void sendTokenAsync (int8_t bits, uint8_t token)
Starts immediate playback of a SonicNet token. Manually check for completion with hasFinished().
Parameters:
bits
(4 or 8) specifies the length of trasmitted token
token
is the index of the SonicNet token to play (0-255 for 8-bit tokens or 0-
15 for 4-bit tokens)
Note:
The module is busy until playback completes and it cannot accept other commands. You can
interrupt playback with stop().
bool sendToken (int8_t bits, uint8_t token)
Plays a SonicNet token and waits for completion.
Parameters:
bits
(4 or 8) specifies the length of trasmitted token
token
is the index of the SonicNet token to play (0-255 for 8-bit tokens or 0-
15 for 4-bit tokens)
Return values:
true
if the operation is successful
bool embedToken (int8_t bits, uint8_t token, uint16_t delay)
Schedules playback of a SonicNet token after the next sound starts playing.
Parameters:
bits
(4 or 8) specifies the length of trasmitted token
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 playSound() or
playSoundAsync() 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 hasFinished().
Parameters:
index
is the index of the target sound in the sound table
volume
(0-31) may be one of the values in SoundVolume
Note:
The module is busy until playback completes and it cannot accept other commands. You can
interrupt playback with stop().
bool playSound (int16_t index, int8_t volume)
Plays a sound from the sound table and waits for completion