WaveFormat.BlockAlign Property |
Language: |
Retrieves and sets the minimum atomic unit of data, in bytes, for the format type.
Visual Basic Public Property BlockAlign As Short C# public short BlockAlign { get; set; } C++ public:
property short BlockAlign {
short get();
void set(short value);
}JScript public function get BlockAlign() : short
public function set BlockAlign(short);
System.Int16
This property is read/write.
The minimum atomic unit of data, in bytes, for the format type.
The value of the BlockAlign property must be equal to the product of Channels and BitsPerSample divided by 8 (bits per byte).
Software must process a multiple of BlockAlign bytes of data at a time. Data written to and read from a device must always start at the beginning of a block. For example, it is illegal to start playback of Pulse Code Modulation (PCM) data in the middle of a sample (that is, on a non-block-aligned boundary).
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center