OSDN Git Service

More SoundPool cleanup. Remove mSoundPoolRef and unused notify callback.
authorDave Sparks <davidsparks@android.com>
Mon, 7 Dec 2009 21:01:01 +0000 (13:01 -0800)
committerDave Sparks <davidsparks@android.com>
Mon, 7 Dec 2009 21:01:01 +0000 (13:01 -0800)
media/jni/soundpool/SoundPool.h

index e0ead9a..94cd978 100644 (file)
@@ -186,9 +186,6 @@ private:
     SoundPool() {} // no default constructor
     bool startThreads();
     void doLoad(sp<Sample>& sample);
-    inline void notify(const SoundPoolEvent* event) {
-        android_soundpool_SoundPool_notify(mSoundPoolRef, event);
-    }
     sp<Sample> findSample(int sampleID) { return mSamples.valueFor(sampleID); }
     SoundChannel* findChannel (int channelID);
     SoundChannel* findNextChannel (int channelID);
@@ -202,7 +199,6 @@ private:
     int run();
     void quit();
 
-    jobject                 mSoundPoolRef;
     Mutex                   mLock;
     Mutex                   mRestartLock;
     Condition               mCondition;