summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2011-10-19 20:09:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-19 20:09:13 -0700
commit38cdb6063059fe5164f8cf93c21ea000fe24f524 (patch)
tree03676419fc609b6d7cd2b4f832f2be85ebd7d1d0
parent81d506d03c0e5d27aae19c2b5c47fd579f66cc80 (diff)
parentf806871f3016a8184de4c9dcfbe0b9069dc0d72c (diff)
downloadframeworks_base-38cdb6063059fe5164f8cf93c21ea000fe24f524.zip
frameworks_base-38cdb6063059fe5164f8cf93c21ea000fe24f524.tar.gz
frameworks_base-38cdb6063059fe5164f8cf93c21ea000fe24f524.tar.bz2
am f806871f: Fix 5487571: Make sure shutter sound is played when it\'s enforced
* commit 'f806871f3016a8184de4c9dcfbe0b9069dc0d72c': Fix 5487571: Make sure shutter sound is played when it's enforced
-rw-r--r--services/camera/libcameraservice/CameraService.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
index 171710a..bb0e664 100644
--- a/services/camera/libcameraservice/CameraService.cpp
+++ b/services/camera/libcameraservice/CameraService.cpp
@@ -331,14 +331,8 @@ void CameraService::playSound(sound_kind kind) {
Mutex::Autolock lock(mSoundLock);
sp<MediaPlayer> player = mSoundPlayer[kind];
if (player != 0) {
- // do not play the sound if stream volume is 0
- // (typically because ringer mode is silent).
- int index;
- AudioSystem::getStreamVolumeIndex(mAudioStreamType, &index);
- if (index != 0) {
- player->seekTo(0);
- player->start();
- }
+ player->seekTo(0);
+ player->start();
}
}