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:
parent
f1f7bbe98a
commit
9e11ff81d5
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue