- Status Closed
- Percent Complete
- Task Type Patches
- Category User Interface
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Daily build (which?)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#7897 - Move time voicing code to a separate function in talk.c
This patch simply moves the code to speak the time from main_menu.c to a function in talk.c.
I did this because I am writing another patch that needs to voice the time.
I think this will also be easier to voice more info under the info screen like the disk size.
The function is in talk.c and is called talk_date_time it requires one argument of type bool. True to speak the string "Current time" and false to just speak the time.
It checks for talk menus enabled as well.
Finally I of course added the proto type to talk.h.
Here it is…
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
I was going to commit this but cant in its current state… talk.c is not compiled for hwcodec sims (all the archos targets) which some do have RTC, so if this is commited people using those sims will lose the talking time…
so, attached is my cleaned up version which you need to figure out the best way to make that fucntion compile for the hwcodec sims.
the other things ive changed are the whitespace and changed it so it could be used to talk any time, not just the current time.