Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
- index f18245f..63d17f0 100644
- --- a/services/camera/libcameraservice/CameraService.cpp
- +++ b/services/camera/libcameraservice/CameraService.cpp
- @@ -1319,15 +1319,18 @@ MediaPlayer* CameraService::newMediaPlayer(const char *file) {
- }
- void CameraService::loadSound() {
- +#if 0
- Mutex::Autolock lock(mSoundLock);
- LOG1("CameraService::loadSound ref=%d", mSoundRef);
- if (mSoundRef++) return;
- mSoundPlayer[SOUND_SHUTTER] = newMediaPlayer("/system/media/audio/ui/camera_click.ogg");
- mSoundPlayer[SOUND_RECORDING] = newMediaPlayer("/system/media/audio/ui/VideoRecord.ogg");
- +#endif
- }
- void CameraService::releaseSound() {
- +#if 0
- Mutex::Autolock lock(mSoundLock);
- LOG1("CameraService::releaseSound ref=%d", mSoundRef);
- if (--mSoundRef) return;
- @@ -1338,6 +1341,7 @@ void CameraService::releaseSound() {
- mSoundPlayer[i].clear();
- }
- }
- +#endif
- }
- void CameraService::playSound(sound_kind kind) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement