Snippset that captures sound and writes it to a WAV file in Java