audio: fix terrible sound on OS X
audio: fix terrible sound on OS X

By asking for 48 kHz output, we were really telling Core Audio that we
wanted sample rate conversion if necessary, so we have to query the
sample rate before we set the desired sample rate.  This makes sense,
and it is the reverse of the way things are done with ALSA.

depp/sglib,depp/sglib