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

Commit a6238ef3 authored by Andy Hung's avatar Andy Hung
Browse files

Fix SoundPool.unload() return value

Bug: 21209627
Change-Id: Ifd5c5f349894744c192cad10c5c875882566ec53
parent 0125d76f
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,