summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-03-26 10:47:22 -0700
committerEric Laurent <elaurent@google.com>2012-03-26 10:54:41 -0700
commitf5e18125498b768d4528e4d1c19533c2b16f338b (patch)
treef86eceeef1fbda2032eb708de15aa15ee37dc4a6 /include
parent9321ad6a7567a28116f15240688d474993539922 (diff)
downloadframeworks_base-f5e18125498b768d4528e4d1c19533c2b16f338b.zip
frameworks_base-f5e18125498b768d4528e4d1c19533c2b16f338b.tar.gz
frameworks_base-f5e18125498b768d4528e4d1c19533c2b16f338b.tar.bz2
reorganize SoundPool and JetPlayer code.
Reorganize SoundPool and JetPlayer code to be ready for the creation of libmedia_native. Split SoundPool between libsoundpool (JNI) and libmedia(sound pool implementation). Remove dependencies on nativehelper/jni.h from JetPlayer. Change-Id: I130c6014173b714329929dd82c5dfb70b757a610
Diffstat (limited to 'include')
-rw-r--r--include/media/JetPlayer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/media/JetPlayer.h b/include/media/JetPlayer.h
index 38a3e44..0616bf0 100644
--- a/include/media/JetPlayer.h
+++ b/include/media/JetPlayer.h
@@ -18,7 +18,6 @@
#define JETPLAYER_H_
#include <utils/threads.h>
-#include <nativehelper/jni.h>
#include <libsonivox/jet.h>
#include <libsonivox/eas_types.h>
@@ -40,7 +39,7 @@ public:
static const int JET_NUMQUEUEDSEGMENT_UPDATE = 3;
static const int JET_PAUSE_UPDATE = 4;
- JetPlayer(jobject javaJetPlayer,
+ JetPlayer(void *javaJetPlayer,
int maxTracks = 32,
int trackBufferSize = 1200);
~JetPlayer();
@@ -75,7 +74,7 @@ private:
jetevent_callback mEventCallback;
- jobject mJavaJetPlayerRef;
+ void* mJavaJetPlayerRef;
Mutex mMutex; // mutex to sync the render and playback thread with the JET calls
pid_t mTid;
Condition mCondition;