The acoustic particle detector: mechanism of operation