summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:44 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:44 -0700
commit76d1ca9c283712cce85667de949403eecc4e92dc (patch)
tree7ced45d0555d0b4d6b64e1dc89197916e6ede7a0 /arm-wt-22k
parent07c322c52f1746da095853e70d44686d32df5bdb (diff)
downloadexternal_sonivox-76d1ca9c283712cce85667de949403eecc4e92dc.zip
external_sonivox-76d1ca9c283712cce85667de949403eecc4e92dc.tar.gz
external_sonivox-76d1ca9c283712cce85667de949403eecc4e92dc.tar.bz2
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'arm-wt-22k')
-rw-r--r--arm-wt-22k/host_src/eas_hostmm.c7
-rw-r--r--arm-wt-22k/host_src/jet.h2
-rw-r--r--arm-wt-22k/lib_src/jet.c8
3 files changed, 13 insertions, 4 deletions
diff --git a/arm-wt-22k/host_src/eas_hostmm.c b/arm-wt-22k/host_src/eas_hostmm.c
index 132239b..d8eed8e 100644
--- a/arm-wt-22k/host_src/eas_hostmm.c
+++ b/arm-wt-22k/host_src/eas_hostmm.c
@@ -70,8 +70,11 @@
#endif
#ifndef EAS_MAX_FILE_HANDLES
-#define EAS_MAX_FILE_HANDLES 32
-#endif
+// 100 max file handles == 3 * (nb tracks(32) + 1 for the segment) + 1 for jet file
+// 3 == 1(playing segment) + 1(prepared segment)
+// + 1(after end of playing segment, before files closed)
+#define EAS_MAX_FILE_HANDLES 100
+#endif
/*
* this structure and the related function are here
diff --git a/arm-wt-22k/host_src/jet.h b/arm-wt-22k/host_src/jet.h
index b5bce00..35bdb6d 100644
--- a/arm-wt-22k/host_src/jet.h
+++ b/arm-wt-22k/host_src/jet.h
@@ -124,7 +124,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);
/*----------------------------------------------------------------------------
* JET_ParseEvent()
diff --git a/arm-wt-22k/lib_src/jet.c b/arm-wt-22k/lib_src/jet.c
index bcb4e5e..ed7d465 100644
--- a/arm-wt-22k/lib_src/jet.c
+++ b/arm-wt-22k/lib_src/jet.c
@@ -569,7 +569,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 +1117,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;