Add comment to clarify calculation.

Change-Id: Ie0eaa2bb1c672c974246b3e97b5d5f3b9e1f9925
This commit is contained in:
Dominik Riebeling 2012-06-05 22:46:16 +02:00
parent 299ce2294e
commit de6f96229b

View file

@ -194,7 +194,9 @@ static unsigned char* get_clip(long id, long* p_size)
unsigned char* clipbuf;
if (id > VOICEONLY_DELIMITER)
{ /* voice-only entries use the second part of the table */
{ /* voice-only entries use the second part of the table.
The first string comes after VOICEONLY_DELIMITER so we need to
substract VOICEONLY_DELIMITER + 1 */
id -= VOICEONLY_DELIMITER + 1;
if (id >= p_voicefile->id2_max)
return NULL; /* must be newer than we have */