summaryrefslogtreecommitdiffstats
path: root/include/media/JetPlayer.h
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
commit2e66a7896c9a9da3a15fc6cff9be28b4174d8719 (patch)
treebc6d8e86ae45de8f4b1a36eda9d11f774bde9bea /include/media/JetPlayer.h
parentef36d496477d1e2ae99c3cd43eee5cf7e82b0883 (diff)
downloadframeworks_av-2e66a7896c9a9da3a15fc6cff9be28b4174d8719.zip
frameworks_av-2e66a7896c9a9da3a15fc6cff9be28b4174d8719.tar.gz
frameworks_av-2e66a7896c9a9da3a15fc6cff9be28b4174d8719.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/media/JetPlayer.h')
-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;