Rework device handling
commit79e0aca09bc6668ba55f4ff7711e80277ba83296
authorChris Robinson <chris.kcat@gmail.com>
Sun, 17 Jun 2018 23:22:51 +0000 (17 16:22 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Mon, 18 Jun 2018 00:04:50 +0000 (17 17:04 -0700)
treef96057487ced945193ad692fa26eaf56ebc803fe
parent8b406cbeacb63c42ac0d58b0f0c5121abccec727
Rework device handling

Now use MMDeviceAPI to query the available list of devices and their GUIDs.
This ensures the device list, the names and IDs, are consistent across the
system. On Windows, OpenAL Soft allows specifying a stringified GUID as a
device name to open.

In the future, this could directly use MMDeviceAPI for the output with OpenAL
Soft's loopback extension. This would have the benefit of improved internal
synchronization with updates, though with the downside of less auto-
configuration on OpenAL Soft (buffer metrics, output format, resampler, etc).
buffer.c
capture.c
dsound8.c
dsound_main.c
dsound_private.h
propset.c