SpeechAudioFormatInfo.BlockAlign Property

Gets and sets the block alignment in bytes.

Namespace: Microsoft.Speech.AudioFormat
Assembly: Microsoft.Speech (in microsoft.speech.dll)


<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public ReadOnly Property BlockAlign As Integer
public int BlockAlign { get; }
property int BlockAlign {
    int get ();
/** @property */
public int get_BlockAlign ()
public function get BlockAlign () : int

Property Value

An int containing the block alignment value.


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).

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.


Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also


SpeechAudioFormatInfo Class
SpeechAudioFormatInfo Members
Microsoft.Speech.AudioFormat Namespace