mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add comment to clarify calculation.
Change-Id: Ie0eaa2bb1c672c974246b3e97b5d5f3b9e1f9925
This commit is contained in:
parent
299ce2294e
commit
de6f96229b
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,9 @@ static unsigned char* get_clip(long id, long* p_size)
|
||||||
unsigned char* clipbuf;
|
unsigned char* clipbuf;
|
||||||
|
|
||||||
if (id > VOICEONLY_DELIMITER)
|
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;
|
id -= VOICEONLY_DELIMITER + 1;
|
||||||
if (id >= p_voicefile->id2_max)
|
if (id >= p_voicefile->id2_max)
|
||||||
return NULL; /* must be newer than we have */
|
return NULL; /* must be newer than we have */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue