fix inverted logic in r26047: voice works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26049 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fecf90fda9
commit
338e4d76aa
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ void talk_init(void)
|
|||
filehandle = open_voicefile();
|
||||
size_t audiobufsz = audiobufend - audiobuf;
|
||||
/* test if we can open and if it fits in the audiobuffer */
|
||||
has_voicefile = filehandle >= 0 && filesize(filehandle) > (off_t)audiobufsz;
|
||||
has_voicefile = filehandle >= 0 && filesize(filehandle) <= (off_t)audiobufsz;
|
||||
voicefile_size = 0;
|
||||
|
||||
if (has_voicefile)
|
||||
|
|
Loading…
Reference in a new issue