Wave propagation in a magnetically structured atmosphere