Using the Waveform Audio Interface
A version of this page is also available for
This section describes the Waveform Audio API interface. An application uses this interface to gain the greatest control possible over audio I/O devices. Specifically, this section discusses the following capabilities of the Waveform Audio API:
In This Section
- Call Order for Waveform Audio Functions
Describes the order in which Waveform Audio Functions are called in order to perform audio recording and playback.
- Querying and opening waveform audio I/O devices
Describes how to determine what drivers are available for audio I/O on your device, and then open those drivers for recording or playback.
- Allocating audio data blocks
How to allocate memory for your audio data blocks needed by the API to play sound.
- Playing waveform audio files
How to use Waveform Audio functions to send data blocks to a waveform audio output device.
- Handling errors generated by audio functions
Describes how errors are returned from Waveform Audio functions, and how these errors should be processed.
- Using windows messages to manage waveform audio playback
Describes the messages your application can send to a window procedure function to manage waveform audio playback.
- Deallocating memory blocks associated with audio data
How your application can determine when a device driver is finished with the data block, and free the memory that is associated with the data block and header structure.
- Closing waveform audio output devices
How to clean up resources allocated during the playback of Waveform Audio.
- Audio Gain Classes
Audio gain classes allow you to classify audio sources and then rely on the OS to manage how these classes preempt one another.