1
0
Fork 0
forked from len0rd/rockbox

Patch #5766 by Steve Bavin - Fix for various voice related crashes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10590 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-08-15 18:01:42 +00:00
parent 599fa9a627
commit 42f0ad3c8f
4 changed files with 37 additions and 12 deletions

View file

@ -146,10 +146,6 @@ static int open_voicefile(void)
return open(buf, O_RDONLY);
}
int talk_get_bufsize(void)
{
return voicefile_size;
}
/* load the voice file into the mp3 buffer */
static void load_voicefile(void)
@ -532,6 +528,19 @@ void talk_init(void)
}
}
/* return if a voice codec is required or not */
bool talk_voice_required(void)
{
return (voicefile_size != 0)
|| (global_settings.talk_dir == 3)
|| (global_settings.talk_file == 3);
}
/* return size of voice file */
int talk_get_bufsize(void)
{
return voicefile_size;
}
/* somebody else claims the mp3 buffer, e.g. for regular play/record */
int talk_buffer_steal(void)