Andoid Camera sound (Not shutter)

Whenever I cover or block the camera on my phone which is currently an Oneplus One it plays this weird sound notifying me that the camera is blocked. This also happened on my old phone which was the HTC One M7. Does anyone know how to cancel this?