BASS.NET API for the Un4seen BASS Audio LibraryWAVEFORMATEXnBlockAlign FieldBASS.NET API for the Un4seen BASS Audio Library
Block alignment, in bytes. The block alignment is the minimum atomic unit of data for the wFormatTag format type. If wFormatTag is WAVE_FORMAT_PCM, nBlockAlign should be equal to the product of nChannels and wBitsPerSample 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 must process a multiple of nBlockAlign bytes of data at a time. 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).

Typical Calculation: nChannels * (wBitsPerSample / 8)

Default = 4

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public short nBlockAlign

Field Value

Type: Int16
See Also

Reference