summaryrefslogtreecommitdiffstats
path: root/media/jni/soundpool/SoundPool.cpp
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-12-07 12:36:20 -0800
committerDave Sparks <davidsparks@android.com>2009-12-07 12:36:20 -0800
commitc0e3ddf8f2f30dc9593f0a1bfd46335823e25d65 (patch)
tree7f93613ca3f41b95d185bcdbc3ab532a55d0b7c8 /media/jni/soundpool/SoundPool.cpp
parent8c7ab034692eea550b97bebd7746e1a82735bbbd (diff)
downloadframeworks_base-c0e3ddf8f2f30dc9593f0a1bfd46335823e25d65.zip
frameworks_base-c0e3ddf8f2f30dc9593f0a1bfd46335823e25d65.tar.gz
frameworks_base-c0e3ddf8f2f30dc9593f0a1bfd46335823e25d65.tar.bz2
Remove unused Java object reference in native SoundPool code.
Diffstat (limited to 'media/jni/soundpool/SoundPool.cpp')
-rw-r--r--media/jni/soundpool/SoundPool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp
index b17e31b..4d2e048 100644
--- a/media/jni/soundpool/SoundPool.cpp
+++ b/media/jni/soundpool/SoundPool.cpp
@@ -38,7 +38,7 @@ uint32_t kMaxSampleRate = 48000;
uint32_t kDefaultSampleRate = 44100;
uint32_t kDefaultFrameCount = 1200;
-SoundPool::SoundPool(jobject soundPoolRef, int maxChannels, int streamType, int srcQuality)
+SoundPool::SoundPool(int maxChannels, int streamType, int srcQuality)
{
LOGV("SoundPool constructor: maxChannels=%d, streamType=%d, srcQuality=%d",
maxChannels, streamType, srcQuality);
@@ -54,7 +54,6 @@ SoundPool::SoundPool(jobject soundPoolRef, int maxChannels, int streamType, int
LOGW_IF(maxChannels != mMaxChannels, "App requested %d channels", maxChannels);
mQuit = false;
- mSoundPoolRef = soundPoolRef;
mDecodeThread = 0;
mStreamType = streamType;
mSrcQuality = srcQuality;