mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
voice file not loading
> > I ran into an issue where my voice file would only load if I changed language while playing music. It seems to happen because when no other file is open, file.c alloc_filestr returns the first free handle which is 0. In talk.c this is treated as an invalid handle, so the voice file is not loaded. Change-Id: I42db40b10cc7a900bdd72012d99265300e783e44
This commit is contained in:
parent
65a91333ef
commit
b64a286a81
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ void talk_init(void)
|
||||||
* and so we can re-use it if it's already allocated in any event */
|
* and so we can re-use it if it's already allocated in any event */
|
||||||
|
|
||||||
filehandle = open_voicefile();
|
filehandle = open_voicefile();
|
||||||
if (filehandle > 0)
|
if (filehandle > -1)
|
||||||
{
|
{
|
||||||
if (!load_voicefile_index(filehandle))
|
if (!load_voicefile_index(filehandle))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue