Default Video recording sound problem

The thing is when I use Cyanogenmodlike ROMs and record a video with loud sonds like concert or music played by any artist it is as if too loud and very unclear. When I use Stock based ROM this problem does not happen. Is it a lack of proper drivers and code or just settings issue?