Detect beep.wav audio format, use for playback

Simple patch which should fix playback problems on Ubuntu.
http://stackoverflow.com/questions/18942424/error-playing-audio-file-from-java-via-pulseaudio-on-ubuntu

@jetthe test please.