Disable AirPlay? That may be overkill, but if you want to do that, do Settings > WiFi = "Off"
More likely, you want to disable AirPlay from sending sounds to external speakers. You can do that from Control Panel by clicking the AirPlay icon and selecting "iPhone".