Loading camera/libcameraservice/CameraService.cpp +16 −4 Original line number Diff line number Diff line Loading @@ -669,9 +669,15 @@ status_t CameraService::Client::startRecording() LOGD("startRecording (pid %d)", getCallingPid()); if (mMediaPlayerBeep.get() != NULL) { // do not play record jingle if stream volume is 0 // (typically because ringer mode is silent). int index; AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index); if (index != 0) { mMediaPlayerBeep->seekTo(0); mMediaPlayerBeep->start(); } } mHardware->enableMsgType(CAMERA_MSG_VIDEO_FRAME); Loading Loading @@ -888,9 +894,15 @@ void CameraService::Client::handleShutter( { // Play shutter sound. if (mMediaPlayerClick.get() != NULL) { // do not play shutter sound if stream volume is 0 // (typically because ringer mode is silent). int index; AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index); if (index != 0) { mMediaPlayerClick->seekTo(0); mMediaPlayerClick->start(); } } // Screen goes black after the buffer is unregistered. if (mSurface != 0 && !mUseOverlay) { Loading include/ui/Surface.h +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ private: ~SurfaceControl(); status_t validate(SharedClient const* cblk) const; status_t validate() const; void destroy(); sp<SurfaceComposerClient> mClient; Loading Loading @@ -190,7 +190,7 @@ private: status_t getBufferLocked(int index, int usage); status_t validate(SharedClient const* cblk) const; status_t validate() const; inline const GraphicBufferMapper& getBufferMapper() const { return mBufferMapper; } inline GraphicBufferMapper& getBufferMapper() { return mBufferMapper; } Loading Loading
camera/libcameraservice/CameraService.cpp +16 −4 Original line number Diff line number Diff line Loading @@ -669,9 +669,15 @@ status_t CameraService::Client::startRecording() LOGD("startRecording (pid %d)", getCallingPid()); if (mMediaPlayerBeep.get() != NULL) { // do not play record jingle if stream volume is 0 // (typically because ringer mode is silent). int index; AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index); if (index != 0) { mMediaPlayerBeep->seekTo(0); mMediaPlayerBeep->start(); } } mHardware->enableMsgType(CAMERA_MSG_VIDEO_FRAME); Loading Loading @@ -888,9 +894,15 @@ void CameraService::Client::handleShutter( { // Play shutter sound. if (mMediaPlayerClick.get() != NULL) { // do not play shutter sound if stream volume is 0 // (typically because ringer mode is silent). int index; AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index); if (index != 0) { mMediaPlayerClick->seekTo(0); mMediaPlayerClick->start(); } } // Screen goes black after the buffer is unregistered. if (mSurface != 0 && !mUseOverlay) { Loading
include/ui/Surface.h +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ private: ~SurfaceControl(); status_t validate(SharedClient const* cblk) const; status_t validate() const; void destroy(); sp<SurfaceComposerClient> mClient; Loading Loading @@ -190,7 +190,7 @@ private: status_t getBufferLocked(int index, int usage); status_t validate(SharedClient const* cblk) const; status_t validate() const; inline const GraphicBufferMapper& getBufferMapper() const { return mBufferMapper; } inline GraphicBufferMapper& getBufferMapper() { return mBufferMapper; } Loading