How i would do when Camera Moves aggresive, Hum sound volume Increases

Basically I want to make that when the camera moves in a slightly accelerated or abrupt way, Play a buzzing sound, the one I already have, and slowly stop playing, its for my ps1 horror game

Find the angle between the current camera look vector and the last camera look vector (previous frame). If the angle is big then the camera moved fast between the current and last frame