Infant makes choking/gasping noise

My 2 month old son will randomly make this noise that sounds like he is gasping for air. It usually happens when he is eating or while he is sleeping and laying flat. It honestly sounds like he is choking and gasping for air, which scares the crap out of me. He has an appointment Monday with the doctor, but has anyone else had a baby that does this? Why does he do that?