Impact location, using four sound sensors.

You can set an interrupt on the acquisition of a sample. Then you can decide whether to fall through to whatever else you want to do.