summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k/lib_src/jet.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm-wt-22k/lib_src/jet.c')
-rw-r--r--arm-wt-22k/lib_src/jet.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arm-wt-22k/lib_src/jet.c b/arm-wt-22k/lib_src/jet.c
index bcb4e5e..cc180af 100644
--- a/arm-wt-22k/lib_src/jet.c
+++ b/arm-wt-22k/lib_src/jet.c
@@ -26,11 +26,10 @@
*----------------------------------------------------------------------------
*/
-//FIXME: remove debug flag for release
-#define LOG_NDEBUG 0
+//#define LOG_NDEBUG 0
#define LOG_TAG "JET_C"
-#define DEBUG_JET
+//#define DEBUG_JET
#include "eas_data.h"
#include "eas_smf.h"
@@ -38,7 +37,6 @@
#include "eas_host.h"
#include "eas_report.h"
-#include <cutils/log.h>
/* default configuration */
static const S_JET_CONFIG jetDefaultConfig =
@@ -569,7 +567,7 @@ EAS_PUBLIC EAS_RESULT JET_Status (EAS_DATA_HANDLE easHandle, S_JET_STATUS *pStat
* Checks for application events
*----------------------------------------------------------------------------
*/
-EAS_BOOL JET_GetEvent (EAS_DATA_HANDLE easHandle, EAS_U32 *pEventRaw, S_JET_EVENT *pEvent)
+EAS_PUBLIC EAS_BOOL JET_GetEvent (EAS_DATA_HANDLE easHandle, EAS_U32 *pEventRaw, S_JET_EVENT *pEvent)
{
EAS_U32 jetEvent;
EAS_BOOL gotEvent;
@@ -1117,6 +1115,12 @@ EAS_RESULT JET_Clear_Queue(EAS_DATA_HANDLE easHandle)
return result;
}
}
+
+ /* clear all clips */
+ for (index = 0; index < JET_MUTE_QUEUE_SIZE ; index++)
+ {
+ easHandle->jetHandle->muteQueue[index] = 0;
+ }
easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING;
easHandle->jetHandle->playSegment = easHandle->jetHandle->queueSegment = 0;