Studio engineer charged after illegal gun allegedly found under bed