You can get software that will do what you want - Airserver or Reflector. Both have free trials so you can check them out before choosing one to stick with.
I have AirServer and it's worked very well. I occasionally need to restart my iMac since the audio will stutter from time to time but that's the only issue I've had.
~Lyssa