SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 81
2.7.4 Advance WAV File – 41hex - A ascii
Commands (host)
4 bytes
1.- 0x41 (hex), A (ascii). *Audio Command.
2.- 0x41 (hex), A (ascii).
3.- File second high byte.
4.- File second low byte.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
This command advances/rewinds the currently
playing audio file, to the desired File Second
parameter.
If File Second parameter is sent as 0(dec), it
means the audio file will play from the second 0 or
beginning.
The maximum acceptable value of File Second
parameter is the file duration in seconds.
If the File Second parameter exceeds file duration
in seconds obtained with “Play WAV File”, the
command will fail with NAK as response and audio
file will stop playing.
To avoid strange/undesired sound output while the
audio file is being advanced or rewind, user can set
first “Pause WAV File” command to toggle pause,
then advance/rewind file, and finally set again ”Pause
WAV FIle” to resume file playing.
This command is only valid when an audio file is
being played, otherwise will always return NAK.
Example (sent commands)
Example 1:
<41,41,00,64> Advance Audio File to second
100(dec).
Example 2:
<41,41,00,00> Rewind Audio File to second 00(dec).
All data is in hex.