Allocating and Preparing Audio Data Blocks

Some multimedia audio functions require applications to allocate data blocks to pass to the device drivers for playback or recording purposes. Each of these functions uses a structure (or header) to describe its data block. The following table identifies these functions and their associated header structures. (The MMSYSTEM.H file defines the data structures for these headers.)

Function
Header structure
Purpose
waveOutWrite
WAVEHDR
Waveform playback
waveInAddBuffer
WAVEHDR
Waveform recording
midiOutLongMsg
MIDIHDR
MIDI system-exclusive playback
midiInAddBuffer
MIDIHDR
MIDI system-exclusive recording

Before you use one of the functions listed above to pass a data block to a device driver, you must allocate memory for the data block according to the guidelines discussed in the following topics.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database