AudioFormat.BlockAlign Property

Note

This property is available only when developing for Windows.

Gets the number of bytes per sample block, taking channels into consideration. For example, for 16-bit stereo audio (PCM format), the size of each sample block is 4 bytes.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Audio
Assembly: (in )

Syntax

public int BlockAlign { get; }

Property Value

Number of bytes, per sample block.

See Also

Reference

AudioFormat Class
AudioFormat Members
Microsoft.Xna.Framework.Content.Pipeline.Audio Namespace

Platforms

Windows 7, Windows Vista, Windows XP