ao_wasapi0: Support shared mode, better format guessing method

Uses WASAPI in shared mode by default, add :exclusive flag to choose
exclusive mode (duh). WASAPI works somewhat different in shared mode:
the OS suggests the sample format to use, and the GetBuffer call is
done slightly differently.

The shared mode driver does not consume audio as fast as it notifies
the thread; we need to check how much we're allowed to write. Not doing
this correctly results in spamming the console with
AUDCLNT_E_BUFFER_TOO_LARGE errors.

When guessing formats for exclusive mode, try several sample size and
sample rate combinations instead of just falling back to s16le@44100hz.
If none of the rates are accepted, tries remixing >6 channels to 5.1
channels. Failing that, tries remixing to stereo. Failing everything,
including the CD Red Book format, what else is left to test?

Calculate buffer_block_size based on the configured channels and bytes
per sample; MSDN docs say nBlockAlign is not guaranteed to be set for
anything but integer PCM formats.
ao_wasapi0: don't loop forever when trying to find aligned buffer

Only loop for a maximum arbitrary 500 times, which is probably a lot more
than actually needed.
ao_wasapi0: Demote "negotiation failed" message to MSGL_V

Could spam the console with what may be harmless in some cases. We already
complain loudly if we're stuck checking this too many times.