Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dddb17c authored by Andy Hung's avatar Andy Hung Committed by Android Git Automerger
Browse files

am ae1f940c: am e07768b8: am 921ded79: Merge "Fix SoundPool.unload() return value" into mnc-dev

* commit 'ae1f940c':
  Fix SoundPool.unload() return value
parents 9d3f4117 ae1f940c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ bool SoundPool::unload(int sampleID)
{
    ALOGV("unload: sampleID=%d", sampleID);
    Mutex::Autolock lock(&mLock);
    return mSamples.removeItem(sampleID);
    return mSamples.removeItem(sampleID) >= 0; // removeItem() returns index or BAD_VALUE
}

int SoundPool::play(int sampleID, float leftVolume, float rightVolume,