Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbb4bf87 authored by Mohan Kandra's avatar Mohan Kandra Committed by Steve Kondik
Browse files

Camera: add command line option to disable shutter sound at runtime

add provision to disable and enable shutter sound at runtime from
command line.

Change-Id: I038f591ddf44992374112e41230a7fb58c20491d
parent 71e9344d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -232,7 +232,9 @@ CameraService::Client::Client(const sp<CameraService>& cameraService,
    mHardware->enableMsgType(CAMERA_MSG_ERROR |
                             CAMERA_MSG_ZOOM |
                             CAMERA_MSG_FOCUS);

    property_get("persist.camera.shutter.disable", value, "0");
    int disableShutterSound = atoi(value);
    if(disableShutterSound != 1)
        mMediaPlayerClick = newMediaPlayer("/system/media/audio/ui/camera_click.ogg");
    mMediaPlayerBeep = newMediaPlayer("/system/media/audio/ui/VideoRecord.ogg");
    mOverlayW = 0;