How to record and audio stream?

Guys,

I’m streaming over Airplay to the Raspberry Pi and would like to record a section of audio, any ideas how I can do this?

Thanks,
Alan