1
0
Fork 0
forked from len0rd/rockbox

talk_value() and talk_number() didn't check if the music was playing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4431 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-03-22 12:34:06 +00:00
parent f1f7bbe98a
commit 9e11ff81d5

View file

@ -352,6 +352,9 @@ int talk_number(int n, bool enqueue)
int level = 0; /* mille count */
int mil = 1000000000; /* highest possible "-illion" */
if (mpeg_status()) /* busy, buffer in use */
return -1;
if (!enqueue)
shutup(); /* cut off all the pending stuff */
@ -427,6 +430,9 @@ int talk_value(int n, int unit, bool enqueue)
VOICE_HERTZ,
};
if (mpeg_status()) /* busy, buffer in use */
return -1;
if (unit < 0 || unit >= UNIT_LAST)
unit_id = -1;
else