Querying Audio Devices

Before playing or recording audio, you must determine the capabilities of the
audio hardware present in the system. Audio capability can vary from one
multimedia computer to the next; applications should not make assumptions about the
audio hardware present in a given system.