You are reading help file online using chmlib.com
|
Object: SpWaveFormatEx
The BlockAlign property gets and sets the block alignment in bytes.
Set: | SpWaveFormatEx.BlockAlign = Integer |
Get: | Integer = SpWaveFormatEx.BlockAlign |
The block alignment is the minimum atomic unit of data for the FormatTag format type. If the FormatTag is WAVE_FORMAT_PCM, BlockAlign should be equal to the product of Channels and BitsPerSample divided by 8 (bits per byte). For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.
Playback and record software handles audio data in blocks. The sizes of these blocks are multiples of the value of the BlockAlign property. Data written and read from a device must always start at the beginning of a block. For example, it is illegal to start playback of PCM data in the middle of a sample (that is, on a non-block-aligned boundary).
For an example of the use of the BlockAlign property, see the code example in the SpAudioFormat GetWaveFormatEx section.
You are reading help file online using chmlib.com
|