From e62cb566448ebb56e2b0ddcaea5fe90532d24488 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 31 May 2013 18:45:51 -0400 Subject: 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 --- apps/appevents.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/appevents.h') 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 **/ -- cgit v1.2.3