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
commite6a823c276302b0c499d7a39956c1b731f23dd4c (patch)
treecd1fcaaa147eeebe567a3907a45dc829fb89e957
parentd24bac2f9e83d3dbc0ef9d2aae3b8ad8e4d2b731 (diff)
parent8888a75f01d904541e409e858d23e4150ace34b6 (diff)
downloadframeworks_av-e6a823c276302b0c499d7a39956c1b731f23dd4c.zip
frameworks_av-e6a823c276302b0c499d7a39956c1b731f23dd4c.tar.gz
frameworks_av-e6a823c276302b0c499d7a39956c1b731f23dd4c.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();
}
}