diff options
author | Nipun Kwatra <nkwatra@google.com> | 2010-09-14 16:49:08 -0700 |
---|---|---|
committer | Nipun Kwatra <nkwatra@google.com> | 2010-09-14 16:49:08 -0700 |
commit | 3b7b358d1a45844ca427626554ff81f472fd1583 (patch) | |
tree | 628389e34737e14cefb22954d66f4e9208bc097f /services/camera/libcameraservice/CameraService.cpp | |
parent | b5ca4618a722a21f084fe8bfc1c2992749ccd3f0 (diff) | |
download | frameworks_av-3b7b358d1a45844ca427626554ff81f472fd1583.zip frameworks_av-3b7b358d1a45844ca427626554ff81f472fd1583.tar.gz frameworks_av-3b7b358d1a45844ca427626554ff81f472fd1583.tar.bz2 |
Added command type to play recording sound.
Added CAMERA_CMD_PLAY_RECORDING_SOUND command type to play recording
sound through sendCommand. This is currently needed by time lapse
recording using still mode capture, which disables the shutter sound
but needs to play the recording sound.
Change-Id: I376aa40f45b6064fd862abc065456b06fc338020
Diffstat (limited to 'services/camera/libcameraservice/CameraService.cpp')
-rw-r--r-- | services/camera/libcameraservice/CameraService.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp index 355763e..f943a10 100644 --- a/services/camera/libcameraservice/CameraService.cpp +++ b/services/camera/libcameraservice/CameraService.cpp @@ -840,6 +840,8 @@ status_t CameraService::Client::sendCommand(int32_t cmd, int32_t arg1, int32_t a return BAD_VALUE; } return OK; + } else if (cmd == CAMERA_CMD_PLAY_RECORDING_SOUND) { + mCameraService->playSound(SOUND_RECORDING); } return mHardware->sendCommand(cmd, arg1, arg2); |