diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-31 18:45:51 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-31 18:45:51 -0400 |
commit | e62cb566448ebb56e2b0ddcaea5fe90532d24488 (patch) | |
tree | 6f1ae825066f521890c63cb27a6fdac7124ca845 /apps/appevents.h | |
parent | 1b4135ec0d572f0e85421051cc855be7c5e516e7 (diff) |
Have voice fire an event when it starts and stops playing.
Further decouples voice_thread.c from other playback areas. Also allows
other audio sources, such as FM radio, to be attenuated when voice is
playing by implementing a callback.
Defined as another playback event rather than a new event class:
PLAYBACK_EVENT_VOICE_PLAYING
Change-Id: I2e3e218be6cd6bebbf39e7883a8c0e4ed42b62bb
Diffstat (limited to 'apps/appevents.h')
-rw-r--r-- | apps/appevents.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/appevents.h b/apps/appevents.h index a11e423a90..506f00329b 100644 --- a/apps/appevents.h +++ b/apps/appevents.h @@ -45,6 +45,8 @@ enum { PLAYBACK_EVENT_TRACK_SKIP, /* Next track medadata was just loaded */ PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, + /* Voice is playing: data = &(bool){true|false} */ + PLAYBACK_EVENT_VOICE_PLAYING, }; /** Buffering events **/ |