Add change that got lost somehow in r30308.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30312 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8fabfef84
commit
89c8cbebf2
1 changed files with 2 additions and 4 deletions
|
@ -677,9 +677,7 @@ void talk_init(void)
|
||||||
|
|
||||||
voicefile_size = filesize(filehandle);
|
voicefile_size = filesize(filehandle);
|
||||||
|
|
||||||
#if CONFIG_CODEC == SWCODEC
|
|
||||||
audio_get_buffer(false, NULL); /* Must tell audio to reinitialize */
|
audio_get_buffer(false, NULL); /* Must tell audio to reinitialize */
|
||||||
#endif
|
|
||||||
reset_state(); /* use this for most of our inits */
|
reset_state(); /* use this for most of our inits */
|
||||||
|
|
||||||
#ifdef TALK_PARTIAL_LOAD
|
#ifdef TALK_PARTIAL_LOAD
|
||||||
|
@ -744,10 +742,10 @@ size_t talkbuf_init(char *bufstart)
|
||||||
{
|
{
|
||||||
bool changed = voicebuf != bufstart;
|
bool changed = voicebuf != bufstart;
|
||||||
|
|
||||||
if (bufstart)
|
|
||||||
voicebuf = bufstart;
|
|
||||||
if (changed) /* must reload voice file */
|
if (changed) /* must reload voice file */
|
||||||
reset_state();
|
reset_state();
|
||||||
|
if (bufstart)
|
||||||
|
voicebuf = bufstart;
|
||||||
|
|
||||||
return voicefile_size;
|
return voicefile_size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue