An Immersed Boundary Method for Aeroacoustics Problems