AudioFormat.BlockAlign Property (Microsoft.Xna.Framework.Content.Pipeline.Audio)

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: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public int BlockAlign { get; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Int32
Number of bytes, per sample block.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop