wahjam/wahjam — pull request #82 by stefanha (2013-02-02 14:20:56+00:00)
Title: Choose best available host API on first start

Users are often confused between the different audio host APIs available
on their platforms (e.g. WinMME, DirectSound, WDMKS, WASAPI, ASIO).
They may choose an API with poor latency and get a poor playing
experience.

Pick the default host API on behalf of the user. This way most users
automatically see the best host API for their platform. The list of
host APIs is prioritized as follows:

Windows: WinMME < DirectSound < WASAPI < WDMKS < ASIO
Linux: OSS < ALSA < JACK
Mac: SoundManager < CoreAudio

Note that although WASAPI is a newer API than WDMKS, in my testing WDMKS
has worked more reliably.

Also note that JACK only appears on Linux if the JACK daemon is running.
Therefore users typically see ALSA by default (which is a fair choice)
but JACK will take priority if the daemon is running (which is usually
what the user expects).

Signed-off-by: Stefan Hajnoczi